{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/12798","labels_url":"https://api.github.com/repos/golang/go/issues/12798/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/12798/comments","events_url":"https://api.github.com/repos/golang/go/issues/12798/events","html_url":"https://github.com/golang/go/issues/12798","id":109160409,"number":12798,"title":"database/sql: Stmt.Close discards error","user":{"login":"iangudger","id":7056530,"avatar_url":"https://avatars.githubusercontent.com/u/7056530?v=3","gravatar_id":"","url":"https://api.github.com/users/iangudger","html_url":"https://github.com/iangudger","followers_url":"https://api.github.com/users/iangudger/followers","following_url":"https://api.github.com/users/iangudger/following{/other_user}","gists_url":"https://api.github.com/users/iangudger/gists{/gist_id}","starred_url":"https://api.github.com/users/iangudger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iangudger/subscriptions","organizations_url":"https://api.github.com/users/iangudger/orgs","repos_url":"https://api.github.com/users/iangudger/repos","events_url":"https://api.github.com/users/iangudger/events{/privacy}","received_events_url":"https://api.github.com/users/iangudger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":333,"closed_issues":161,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-10-01T04:36:49Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":2,"created_at":"2015-09-30T19:19:42Z","updated_at":"2015-10-01T11:01:07Z","closed_at":null,"body":"The Stmt.Close() function in database/sql discards any error generated by the Close() function of the contained driverStmt. I think this error should be propagated.\r\nhttps://github.com/golang/go/blob/master/src/database/sql/sql.go#L1579\r\n\r\nThis is preventing github.com/DATA-DOG/go-sqlmock/ExpectedPrepare.WillReturnCloseError from functioning:\r\nhttps://github.com/DATA-DOG/go-sqlmock/issues/25"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/144697506","html_url":"https://github.com/golang/go/issues/12798#issuecomment-144697506","issue_url":"https://api.github.com/repos/golang/go/issues/12798","id":144697506,"user":{"login":"gopherbot","id":8566911,"avatar_url":"https://avatars.githubusercontent.com/u/8566911?v=3","gravatar_id":"","url":"https://api.github.com/users/gopherbot","html_url":"https://github.com/gopherbot","followers_url":"https://api.github.com/users/gopherbot/followers","following_url":"https://api.github.com/users/gopherbot/following{/other_user}","gists_url":"https://api.github.com/users/gopherbot/gists{/gist_id}","starred_url":"https://api.github.com/users/gopherbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gopherbot/subscriptions","organizations_url":"https://api.github.com/users/gopherbot/orgs","repos_url":"https://api.github.com/users/gopherbot/repos","events_url":"https://api.github.com/users/gopherbot/events{/privacy}","received_events_url":"https://api.github.com/users/gopherbot/received_events","type":"User","site_admin":false},"created_at":"2015-10-01T11:01:07Z","updated_at":"2015-10-01T11:01:07Z","body":"CL https://golang.org/cl/15178 mentions this issue."}}