{"action":"created","issue":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/1653","repository_url":"https://api.github.com/repos/jinzhu/gorm","labels_url":"https://api.github.com/repos/jinzhu/gorm/issues/1653/labels{/name}","comments_url":"https://api.github.com/repos/jinzhu/gorm/issues/1653/comments","events_url":"https://api.github.com/repos/jinzhu/gorm/issues/1653/events","html_url":"https://github.com/jinzhu/gorm/issues/1653","id":267509833,"number":1653,"title":"Bug when using a *sql.Tx","user":{"login":"pjebs","id":5377970,"avatar_url":"https://avatars1.githubusercontent.com/u/5377970?v=4","gravatar_id":"","url":"https://api.github.com/users/pjebs","html_url":"https://github.com/pjebs","followers_url":"https://api.github.com/users/pjebs/followers","following_url":"https://api.github.com/users/pjebs/following{/other_user}","gists_url":"https://api.github.com/users/pjebs/gists{/gist_id}","starred_url":"https://api.github.com/users/pjebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjebs/subscriptions","organizations_url":"https://api.github.com/users/pjebs/orgs","repos_url":"https://api.github.com/users/pjebs/repos","events_url":"https://api.github.com/users/pjebs/events{/privacy}","received_events_url":"https://api.github.com/users/pjebs/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-10-22T23:52:28Z","updated_at":"2018-02-09T13:17:14Z","closed_at":null,"author_association":"NONE","body":"I am getting this panic when I pass a *sql.Tx into the Open function:\r\n\r\n`interface conversion: gorm.sqlCommon is *sql.Tx, not *sql.DB`\r\n\r\nThe relevant part of stack trace:\r\n\r\n`\r\ngithub.com/jinzhu/gorm.Open(0xa57fdc, 0x5, 0xc420011da0, 0x1, 0x1, 0xc4202460a0, 0x0, 0x0)\r\n    go/src/github.com/jinzhu/gorm/main.go:67\r\n`\r\n\r\n*sql.Tx satisfies the SQLCommon so why is this error occurring?\r\n\r\nIs (lower-case) sqlCommon different to SQLCommon?"},"comment":{"url":"https://api.github.com/repos/jinzhu/gorm/issues/comments/364430966","html_url":"https://github.com/jinzhu/gorm/issues/1653#issuecomment-364430966","issue_url":"https://api.github.com/repos/jinzhu/gorm/issues/1653","id":364430966,"user":{"login":"pjebs","id":5377970,"avatar_url":"https://avatars1.githubusercontent.com/u/5377970?v=4","gravatar_id":"","url":"https://api.github.com/users/pjebs","html_url":"https://github.com/pjebs","followers_url":"https://api.github.com/users/pjebs/followers","following_url":"https://api.github.com/users/pjebs/following{/other_user}","gists_url":"https://api.github.com/users/pjebs/gists{/gist_id}","starred_url":"https://api.github.com/users/pjebs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjebs/subscriptions","organizations_url":"https://api.github.com/users/pjebs/orgs","repos_url":"https://api.github.com/users/pjebs/repos","events_url":"https://api.github.com/users/pjebs/events{/privacy}","received_events_url":"https://api.github.com/users/pjebs/received_events","type":"User","site_admin":false},"created_at":"2018-02-09T13:17:14Z","updated_at":"2018-02-09T13:17:14Z","author_association":"NONE","body":"Just make sure glide and go dep use the master branch instead of a particular version."}}
{"actor":{"display_login":"pjebs"}}