Skip to content

Insertion in transaction presisted after rollback? #881

Answered by elprans
yeraydiazdiaz asked this question in Q&A
Discussion options

You must be logged in to vote

await db.execute("INSERT INTO foo VALUES (2)")

This should be conn.execute, not db.execute. You started a transaction on a different connection.

Replies: 1 comment 1 reply

Comment options

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

Answer selected by yeraydiazdiaz
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