-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Fix to #35393 - GroupJoin in EF Core 9 Returns Null for Joined Entities #35395
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4452,7 +4452,7 @@ INNER JOIN ( | |
| FROM [Factions] AS [f] | ||
| WHERE [f].[Name] = N'Swarm' | ||
| ) AS [f0] ON [l].[Name] = [f0].[CommanderName] | ||
| WHERE [f0].[Eradicated] = CAST(0 AS bit) OR [f0].[Eradicated] IS NULL | ||
| WHERE [f0].[Eradicated] <> CAST(1 AS bit) OR [f0].[Eradicated] IS NULL | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we could maybe keep this form by adding/duplicating "use equality where possible" section to the SqlNullabilityProcessor.OptimizeComparison - worth?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. several DBs can use indexes on
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe that #34166 would do that already and even make this whole optimization pointless (it takes care of the interesting case)... which makes me wonder if it handles correctly these trivial cases 👀
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Confirmed:
|
||
| """); | ||
| } | ||
|
|
||
|
|
@@ -4469,7 +4469,7 @@ LEFT JOIN ( | |
| FROM [Factions] AS [f] | ||
| WHERE [f].[Name] = N'Swarm' | ||
| ) AS [f0] ON [l].[Name] = [f0].[CommanderName] | ||
| WHERE [f0].[Eradicated] = CAST(0 AS bit) OR [f0].[Eradicated] IS NULL | ||
| WHERE [f0].[Eradicated] <> CAST(1 AS bit) OR [f0].[Eradicated] IS NULL | ||
| """); | ||
| } | ||
|
|
||
|
|
@@ -6978,7 +6978,7 @@ FROM [LocustLeaders] AS [l] | |
| INNER JOIN [Factions] AS [f] ON [l].[Name] = [f].[CommanderName] | ||
| WHERE CASE | ||
| WHEN [f].[Name] = N'Locust' THEN CAST(1 AS bit) | ||
| END = CAST(0 AS bit) OR CASE | ||
| END <> CAST(1 AS bit) OR CASE | ||
| WHEN [f].[Name] = N'Locust' THEN CAST(1 AS bit) | ||
| END IS NULL | ||
| """); | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.