Skip to content

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
@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
@renovate renovate bot mentioned this pull request Nov 27, 2024
1 task
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