-
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.
workload/schemachanger: unique constraint validation is buggy for exprs
Previously, when we were validating unique constraint expressions during inserts we did not properly handle NULL values. This could lead to us incorrectly skipping over evaluation trying to determine the uniqueness of values. This could mean both valid / invalid inserts were not properly fully evaluated leading to unexpected errors. To address this, this patch properly counts the number of NULL values in the unique expression where if all of them are NULL then the expression is not evaluated for uniqueness. Release note: None
- Loading branch information
Showing
2 changed files
with
51 additions
and
19 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