Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This change fixes a bug in the insert fast path where we accidentally skip subsequent FK checks when a FK check can be skipped due to NULL value. Note that this bug does not manifest when optbuilder can determine that the check can be elided entirely; notably, this is always the case for non-prepared statements which insert a single row. Fixes cockroachdb#68307. Release note (bug fix): fixed missing foreign key checks in some cases when there are multiple checks and the inserted data contains a NULL for one of the checks.
- Loading branch information