You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an existing application using pq driver for Postgres. My tests are breaking in Go 1.8 because tx.Commit() returns a context error, instead of sql.ErrTxDone.
What did you expect to see?
sql.ErrTxDone as error if the transaction was rolled back or committed already.
What version of Go are you using (
go version
)?go version devel +208d4d2 Thu Dec 1 17:42:25 2016 +0000 darwin/amd64
What operating system and processor architecture are you using (
go env
)?What did you do?
I had an existing application using
pq
driver for Postgres. My tests are breaking in Go 1.8 becausetx.Commit()
returns a context error, instead ofsql.ErrTxDone
.What did you expect to see?
sql.ErrTxDone
as error if the transaction was rolled back or committed already.What did you see instead?
"Database error: context canceled"
cc: @kardianos
The text was updated successfully, but these errors were encountered: