Skip to content

Fix tx_id mismatch for insert-only tables - #214

Merged
simolus3 merged 2 commits into
mainfrom
fix-mismatched-tx-ids
Aug 13, 2026
Merged

Fix tx_id mismatch for insert-only tables#214
simolus3 merged 2 commits into
mainfrom
fix-mismatched-tx-ids

Conversation

@simolus3

@simolus3 simolus3 commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

The crud vtab is responsible for incrementing recorded tx_id values in transactions. We have two of them though, and both would increment the transaction counter for transactions on both vtabs (for regular and insert-only tables).

This fixes the issue by only incrementing tx_id if we're not already known to be in a transaction.

This also reformats Dart sources with the formatter from 3.13.

AI use: Manually written, then reviewed with Claude Code and used for trivial style improvements.

@simolus3
simolus3 marked this pull request as ready for review August 13, 2026 09:04
@simolus3
simolus3 requested a review from rkistner August 13, 2026 09:05
@simolus3
simolus3 merged commit ea80f04 into main Aug 13, 2026
30 checks passed
@simolus3
simolus3 deleted the fix-mismatched-tx-ids branch August 13, 2026 09:35
@simolus3 simolus3 mentioned this pull request Aug 13, 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.

2 participants