Skip to content

Commit

Permalink
Handle AtTimeZoneExpression and CollateExpression
Browse files Browse the repository at this point in the history
as per review.
  • Loading branch information
ranma42 committed Jul 21, 2024
1 parent 65d9a68 commit 12a532b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/EFCore.Relational/Query/SqlNullabilityProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -630,6 +630,15 @@ static void DetectNullPropagatingNodes(SqlExpression expression, HashSet<SqlExpr

switch (expression)
{
case AtTimeZoneExpression atTimeZone:
DetectNullPropagatingNodes(atTimeZone.Operand, operands);
DetectNullPropagatingNodes(atTimeZone.TimeZone, operands);
break;

case CollateExpression collate:
DetectNullPropagatingNodes(collate.Operand, operands);
break;

case SqlUnaryExpression { OperatorType: not (ExpressionType.Equal or ExpressionType.NotEqual) } unary:
DetectNullPropagatingNodes(unary.Operand, operands);
break;
Expand Down

0 comments on commit 12a532b

Please sign in to comment.