Skip to content

Commit aa12ab0

Browse files
authored
Make SqlNullabilityProcessor into a real ExpressionVisitor (#34697)
Closes #34696
1 parent 6042eb7 commit aa12ab0

File tree

5 files changed

+81
-319
lines changed

5 files changed

+81
-319
lines changed

src/EFCore.Relational/Query/SqlExpressions/SelectExpression.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4224,6 +4224,16 @@ public SelectExpression Update(
42244224
return this;
42254225
}
42264226

4227+
if (predicate is SqlConstantExpression { Value: true })
4228+
{
4229+
predicate = null;
4230+
}
4231+
4232+
if (having is SqlConstantExpression { Value: true })
4233+
{
4234+
having = null;
4235+
}
4236+
42274237
var projectionMapping = new Dictionary<ProjectionMember, Expression>();
42284238
foreach (var (projectionMember, expression) in _projectionMapping)
42294239
{

0 commit comments

Comments
 (0)