-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
row.Scan fails when in a transaction #5
Comments
I encountered this too; I believe this may be due to a database/sql bug: see https://groups.google.com/forum/#!topic/golang-nuts/lHwLhWcDNkE. Not sure, and so haven't filed an issue with go. |
I've seen this issue with pq.go (pure go PostgreSQL lib) but not with gopgsqldriver, which seems to work as expected. I wonder if the author there found a workaround. I'll keep my eye on that topic, thanks for the pointer. |
If you've seen this issue in independently developed code, it's almost certainly a database/sql bug, and you should file in the issue tracker. (At the very least, there's a quirk that needs to be addressed in the documentation.) |
Looks like you're right; there was confirmation from Brad. Closing this issue. |
If this is a problem of go-sqlite3, please re-open this issue. Thanks. :) |
When inside a transaction I attempt to insert and then select the row that was just inserted; the row.Scan function fails with a nil pointer.
Here is the test case:
https://gist.github.com/1672440
The text was updated successfully, but these errors were encountered: