-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with abstract types, exclusive constraints, and ANALYZE. (#…
…7454) When we have inheritance views expanded (either by config or because of ANALYZE), we fail to raise exclusive constraint errors caused by `UPDATE`ing an abstract type such that two different subtypes have conflicting values for a multi property. (See `test_constraints_abstract_object_01`.) This is because that query relies on explicitly looking for conflicts in the query we generate, and doing that relies on pointer overlays being used to look at the new values. The fix in `range_for_ptrref` is to expand the inhviews while keeping them grouped based on which abstract type they are part of, then to add the overlays for the abstract type onto that expanded group. --------- Co-authored-by: Michael J. Sullivan <[email protected]>
- Loading branch information
Showing
2 changed files
with
80 additions
and
62 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