forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql: check FK back-references in ALTER COLUMN TYPE
Previously, ALTER TABLE ... ALTER COLUMN ... TYPE ... statements would execute regardless if the column is also the target of a foreign key constraint on another table. This commit fixes this bug. Fixes cockroachdb#71709. Release note (bug fix): fixes a bug in which an ALTER TABLE ... ALTER COLUMN ... TYPE ... statement could execute despite the column being the target of a foreign key constraint on another table.
- Loading branch information
Marius Posta
committed
Oct 19, 2021
1 parent
0e2e645
commit 8a8a32d
Showing
2 changed files
with
15 additions
and
2 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