Skip to content

Wrong returned error type after rolling back an already committed transaction? #1990

Answered by jackc
LaCodon asked this question in Q&A
Discussion options

You must be logged in to vote

It's not used in pgx/tx.go because that code has nothing to do with database/sql. That is the pgx native interface. As far as I know, sql.ErrTxDone should only be returned from database/sql itself.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@LaCodon
Comment options

Answer selected by LaCodon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants