-
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.
36518: sql: validate computed columns during ALTER TABLE r=vivekmenezes a=mjibson Previously these were only validated during CREATE, allowing the creation of incorrect columns. validateComputedColumn has removed its dependency on the tree.CreateTable struct so that the alter code can use it. Because of this, all FKs must be computed prior to the computed validate checks. Fixes #36036 Release note (bug fix): Correctly validate computed columns during ALTER TABLE ADD COLUMN. Co-authored-by: Matt Jibson <[email protected]>
- Loading branch information
Showing
4 changed files
with
45 additions
and
21 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
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