-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: move validation of primary key existence to TableCollection
To support `ADD/DROP PRIMARY KEY` operations within a single transaction, we had added a step in the `connExecutor` to verify that all tables modified in the transaction have a primary key before we commit the transaction. This was done by examining `SchemaChanger`s queued in the transaction in `extraTxnState`. To ease the process of removing `SchemaChanger`s from `extraTxnState` as part of moving them to jobs, this PR moves the validation implementation to a method on `TableCollection` that examines all modified tables. Release note: None
- Loading branch information
1 parent
c9b189b
commit 1007293
Showing
3 changed files
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters