{"action":"closed","issue":{"url":"https://api.github.com/repos/jackc/pgx/issues/105","repository_url":"https://api.github.com/repos/jackc/pgx","labels_url":"https://api.github.com/repos/jackc/pgx/issues/105/labels{/name}","comments_url":"https://api.github.com/repos/jackc/pgx/issues/105/comments","events_url":"https://api.github.com/repos/jackc/pgx/issues/105/events","html_url":"https://github.com/jackc/pgx/issues/105","id":117452291,"number":105,"title":"encode numbers should more strict","user":{"login":"jackc","id":94130,"avatar_url":"https://avatars.githubusercontent.com/u/94130?v=3","gravatar_id":"","url":"https://api.github.com/users/jackc","html_url":"https://github.com/jackc","followers_url":"https://api.github.com/users/jackc/followers","following_url":"https://api.github.com/users/jackc/following{/other_user}","gists_url":"https://api.github.com/users/jackc/gists{/gist_id}","starred_url":"https://api.github.com/users/jackc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackc/subscriptions","organizations_url":"https://api.github.com/users/jackc/orgs","repos_url":"https://api.github.com/users/jackc/repos","events_url":"https://api.github.com/users/jackc/events{/privacy}","received_events_url":"https://api.github.com/users/jackc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jackc/pgx/milestones/1","html_url":"https://github.com/jackc/pgx/milestones/v3","labels_url":"https://api.github.com/repos/jackc/pgx/milestones/1/labels","id":1416720,"number":1,"title":"v3","description":null,"creator":{"login":"jackc","id":94130,"avatar_url":"https://avatars.githubusercontent.com/u/94130?v=3","gravatar_id":"","url":"https://api.github.com/users/jackc","html_url":"https://github.com/jackc","followers_url":"https://api.github.com/users/jackc/followers","following_url":"https://api.github.com/users/jackc/following{/other_user}","gists_url":"https://api.github.com/users/jackc/gists{/gist_id}","starred_url":"https://api.github.com/users/jackc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jackc/subscriptions","organizations_url":"https://api.github.com/users/jackc/orgs","repos_url":"https://api.github.com/users/jackc/repos","events_url":"https://api.github.com/users/jackc/events{/privacy}","received_events_url":"https://api.github.com/users/jackc/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":2,"state":"open","created_at":"2015-11-17T21:16:59Z","updated_at":"2016-03-07T13:55:30Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2015-11-17T21:16:24Z","updated_at":"2016-03-07T13:55:30Z","closed_at":"2016-03-07T13:55:30Z","body":"The numeric encode functions currently accept multiple types for convenience. For example, `encodeInt8` accepts an `int32`. This feels slightly contrary to Go's strict typing philosophy. Worse yet, `encodeInt32` will accept a `int64` if it happens to fit in an `int32`. This could cause runtime errors based on the value provided. And even worse, `encodeFloat4` accepts a float64 if it is smaller than `math.MaxFloat32`. This could easily lead to loss of precision.\r\n\r\nAs this would be a breaking change, this should not be done until v3. "}}