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

SQLite must keep AI incremented after rollback #1162

Closed
mvorisek opened this issue Feb 19, 2024 · 1 comment · Fixed by #1167
Closed

SQLite must keep AI incremented after rollback #1162

mvorisek opened this issue Feb 19, 2024 · 1 comment · Fixed by #1167

Comments

@mvorisek
Copy link
Member

mvorisek commented Feb 19, 2024

related discussion: https://stackoverflow.com/questions/692856/set-start-value-for-autoincrement-in-sqlite

needed for atk4/ui#2032

@mvorisek
Copy link
Member Author

It seems the only way is to increment the AI counters before any rollback/savepoint rollback - https://dbfiddle.uk/6Fbnb-b5

@mvorisek mvorisek changed the title Sqlite must keep AI incremented after rollback SQLite must keep AI incremented after rollback Feb 23, 2024
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 a pull request may close this issue.

1 participant