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

[memory] force mutating the editAcc AutoInc because tableEditor is unreliable #2381

Merged
merged 1 commit into from
Mar 11, 2024

Conversation

max-hoffman
Copy link
Contributor

I can't figure a clean way to get the insert editor's edit accumulator and table editor data in sync when a self-referential foreign key initializes the session editor during analysis. So I just forced us to mutate the edit accumulator's auto increment id, which should prevent bugs of the kind we've been seeing. Zach might have a better understanding of how this should work.

fixes: #2369

Copy link
Member

@zachmu zachmu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks fine, this was one of the trickiest parts to get working correctly.

@max-hoffman max-hoffman merged commit 0cb0f28 into main Mar 11, 2024
8 checks passed
@max-hoffman max-hoffman deleted the max/autoinc-table-data-bug-2 branch March 11, 2024 19:29
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.

Self-referencing foreign key constraint breaks auto-incrementing ids in memory mode
2 participants