Skip to content

Fix faulty logic in Connection#transaction#8

Closed
timcraft wants to merge 1 commit intotursodatabase:masterfrom
timcraft:connection-transaction
Closed

Fix faulty logic in Connection#transaction#8
timcraft wants to merge 1 commit intotursodatabase:masterfrom
timcraft:connection-transaction

Conversation

@timcraft
Copy link
Copy Markdown

@timcraft timcraft commented May 7, 2025

This fixes a logic error in the Connection#transaction ensure block.

Transaction#rollback returns nil, so with the current logic Transaction#commit will also be called and that will raise ClosedException instead of the exception that was originally raised.

@timcraft timcraft closed this by deleting the head repository Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant