Skip to content

Commit

Permalink
Query: Convert null equality to Is Null in SQL before null semantics …
Browse files Browse the repository at this point in the history
…are applied

One way to solve #18547
  • Loading branch information
smitpatel committed Oct 23, 2019
1 parent 5a0b029 commit d9d30d7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ public override Expression Process(Expression query)
query = new SelectExpressionProjectionApplyingExpressionVisitor().Visit(query);
query = new CollectionJoinApplyingExpressionVisitor().Visit(query);
query = new TableAliasUniquifyingExpressionVisitor().Visit(query);
query = new NullComparisonTransformingExpressionVisitor().Visit(query);

if (!UseRelationalNulls)
{
query = new NullSemanticsRewritingExpressionVisitor(SqlExpressionFactory).Visit(query);
}

query = OptimizeSqlExpression(query);
query = new NullComparisonTransformingExpressionVisitor().Visit(query);

return query;
}
Expand Down

0 comments on commit d9d30d7

Please sign in to comment.