-
Notifications
You must be signed in to change notification settings - Fork 407
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issues with empty sets leaking out of optional scopes
For the previous issues, see #5575 and #6526. The issue here is that in queries like ``` select User filter .avatar ?= <Card>{} and .name = 'Bob' ``` we were returning an empty set, since we were deciding that the optional wraper we grabbed `.avatar` in was also a reasonable source for User itself. We have machinery to prevent that (introduced in the mask of the statement that was a "tentative container" for the relation, but in this case, that container statement was not being used, so the masks had no effect. Instead, set up the masks on the final main rvar before including it. Fixes #6739.
- Loading branch information
Showing
3 changed files
with
32 additions
and
3 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