You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like when foreign keys are involved, the auto-increment ids are managed differently. I can look into this if someone could point me in the right direction.
The text was updated successfully, but these errors were encountered:
Thanks for the good repro @seanlaff. We had a bug in the memory state session resetting #2353
There is some table metadata stored in the session state, and during edits we expect the references to this metadata between the session, table, and edit accumulator to be kept in sync. The presence of a foreign key triggers a codepath that caches an edit accumulator with a stale reference to the auto increment id during analysis that should be reset during execution.
I receive a
error when doing these queries in memory mode
If I remove the
CONSTRAINT myConstraint FOREIGN KEY (fk) REFERENCES table1 (id)
. I don't get any errors.Full go code reproduction:
It seems like when foreign keys are involved, the auto-increment ids are managed differently. I can look into this if someone could point me in the right direction.
The text was updated successfully, but these errors were encountered: