{"action":"created","issue":{"url":"https://api.github.com/repos/will/crystal-pg/issues/134","repository_url":"https://api.github.com/repos/will/crystal-pg","labels_url":"https://api.github.com/repos/will/crystal-pg/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/will/crystal-pg/issues/134/comments","events_url":"https://api.github.com/repos/will/crystal-pg/issues/134/events","html_url":"https://github.com/will/crystal-pg/issues/134","id":293241018,"number":134,"title":"Numeric.to_s is broken again","user":{"login":"greenbigfrog","id":6208894,"avatar_url":"https://avatars3.githubusercontent.com/u/6208894?v=4","gravatar_id":"","url":"https://api.github.com/users/greenbigfrog","html_url":"https://github.com/greenbigfrog","followers_url":"https://api.github.com/users/greenbigfrog/followers","following_url":"https://api.github.com/users/greenbigfrog/following{/other_user}","gists_url":"https://api.github.com/users/greenbigfrog/gists{/gist_id}","starred_url":"https://api.github.com/users/greenbigfrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenbigfrog/subscriptions","organizations_url":"https://api.github.com/users/greenbigfrog/orgs","repos_url":"https://api.github.com/users/greenbigfrog/repos","events_url":"https://api.github.com/users/greenbigfrog/events{/privacy}","received_events_url":"https://api.github.com/users/greenbigfrog/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-31T17:14:59Z","updated_at":"2018-02-05T16:34:35Z","closed_at":"2018-02-05T16:32:39Z","author_association":"CONTRIBUTOR","body":"Discovered another case where numeric's to_s is returning wrong values.\r\n\r\n`db.query_one(\"SELECT amount FROM test WHERE id = 24\", as: BigDecimal) # => 593.60754417` with the actual value being `db.exec(\"INSERT INTO test (amount) VALUES (50093.60754417)\")`\r\n\r\n```\r\nndigits # => 4_i16\r\nweight # => 1_i16\r\ndscale # => 8_i16\r\ndigits # => [5_i16, 93_i16, 6075_i16, 4417_i16]\r\n```"},"comment":{"url":"https://api.github.com/repos/will/crystal-pg/issues/comments/363140373","html_url":"https://github.com/will/crystal-pg/issues/134#issuecomment-363140373","issue_url":"https://api.github.com/repos/will/crystal-pg/issues/134","id":363140373,"user":{"login":"greenbigfrog","id":6208894,"avatar_url":"https://avatars3.githubusercontent.com/u/6208894?v=4","gravatar_id":"","url":"https://api.github.com/users/greenbigfrog","html_url":"https://github.com/greenbigfrog","followers_url":"https://api.github.com/users/greenbigfrog/followers","following_url":"https://api.github.com/users/greenbigfrog/following{/other_user}","gists_url":"https://api.github.com/users/greenbigfrog/gists{/gist_id}","starred_url":"https://api.github.com/users/greenbigfrog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greenbigfrog/subscriptions","organizations_url":"https://api.github.com/users/greenbigfrog/orgs","repos_url":"https://api.github.com/users/greenbigfrog/repos","events_url":"https://api.github.com/users/greenbigfrog/events{/privacy}","received_events_url":"https://api.github.com/users/greenbigfrog/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T16:34:35Z","updated_at":"2018-02-05T16:34:35Z","author_association":"CONTRIBUTOR","body":"I actually had sat down yesterday and finally tried to understand how it works and fix it 😄 \r\n(Was just fixing up so that the spec's work the past hour)\r\n\r\nThanks anyways!\r\n"}}
{"actor":{"display_login":"greenbigfrog"}}