Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure seq is always incremented on every operation in a tx and always only by 1 #238

Merged
merged 3 commits into from
Jun 18, 2023

Conversation

tantaman
Copy link
Collaborator

No description provided.

The `select` portion is _always_ run.

The `on conflict` clause might be run. Since the select is always run (conditional on the where clause matching) then the seq is already incremented. The conflict clause needs to get the previous seq number rather than current.
@tantaman tantaman merged commit a08bb74 into main Jun 18, 2023
13 checks passed
@tantaman tantaman deleted the seq-by-1 branch June 19, 2023 00:22
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