-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
133328: sql: fix trigger interaction with computed columns r=mgartner a=DrewKimball This commit makes the following changes to the way row-level BEFORE triggers interact with computed columns: * BEFORE triggers now observe NULL values in place of computed columns. * Modifications to computed columns by BEFORE triggers are ignored. * Computed columns are re-computed after row-level BEFORE triggers execute. These changes make the behavior consistent with that of Postgres. Fixes #132979 Release note: None Co-authored-by: Drew Kimball <drewk@cockroachlabs.com>
- Loading branch information
Showing
3 changed files
with
366 additions
and
5 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
Oops, something went wrong.