No need to wrap an expression in a CaseExpression (generating IIF...) if the expression we are meant to be checking is a non-null constant expression

pull/144/head
Christopher Jolly 2 years ago
parent c1d263aedc
commit ab3449349f

@ -586,6 +586,10 @@ namespace EntityFrameworkCore.Jet.Query.Sql.Internal
{
Visit(notnullsqlexp);
}
else if (checksqlexp is SqlConstantExpression { Value: not null })
{
Visit(notnullsqlexp);
}
else
{
Visit(caseexp);

Loading…
Cancel
Save