Skip to content

Fix handling of constant join predicates#37350

Merged
roji merged 1 commit intodotnet:mainfrom
roji:JoinPredicate
Jan 3, 2026
Merged

Fix handling of constant join predicates#37350
roji merged 1 commit intodotnet:mainfrom
roji:JoinPredicate

Conversation

@roji
Copy link
Member

@roji roji commented Dec 11, 2025

Not adding a test as reproducing would rely on another unrelated bug (#15586), even if the fix here may fix various other cases where a constant true/false ends up in a join predicate because of arbitrary simplifications.

Fixes #37300

@roji roji merged commit 03aa67c into dotnet:main Jan 3, 2026
7 of 8 checks passed
@roji roji deleted the JoinPredicate branch January 3, 2026 02:15
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.

System.InvalidOperationException: 'Unhandled expression '[Microsoft.EntityFrameworkCore.Query.SqlExpressions.SqlConstantExpression]'

2 participants