Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Take into account Contains item visitation in SqlNullabilityProcessor #32214

Merged
merged 1 commit into from
Nov 3, 2023

Conversation

roji
Copy link
Member

@roji roji commented Nov 2, 2023

When visiting non-subquery InExpression in SqlNullabilityProcessor, we were ignoring the results of visiting the item.

Fixes #32208

@roji roji requested a review from maumar November 2, 2023 14:11
SELECT [p].[Id], [p].[Bool], [p].[Bools], [p].[DateTime], [p].[DateTimes], [p].[Enum], [p].[Enums], [p].[Int], [p].[Ints], [p].[NullableInt], [p].[NullableInts], [p].[NullableString], [p].[NullableStrings], [p].[String], [p].[Strings]
FROM [PrimitiveCollectionsEntity] AS [p]
WHERE CASE
WHEN [p].[Int] IN (1, 2, 3) THEN N'one'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should be getting OPENJSON here; this means that the array parameter is somehow not treated as a primitive query root. Opened #32215 to track.

@roji roji merged commit 338b76a into dotnet:main Nov 3, 2023
7 checks passed
@roji roji deleted the ContainsNullabilityProcessing branch November 3, 2023 13:42
roji added a commit to roji/efcore that referenced this pull request Nov 9, 2023
roji added a commit that referenced this pull request Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SqlNullabilityProcessor ignores Contains item visitation
2 participants