Skip to content

Commit

Permalink
Use sql function IsNullable property to determine its nullability, ra…
Browse files Browse the repository at this point in the history
…ther than always assume it's nullable
  • Loading branch information
maumar committed Mar 4, 2020
1 parent 3b9d4dc commit 3963348
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1015,8 +1015,7 @@ protected override Expression VisitSqlFunction(SqlFunctionExpression sqlFunction

if (sqlFunctionExpression.IsNiladic)
{
// TODO: #18555
_nullable = true;
_nullable = sqlFunctionExpression.IsNullable;

return sqlFunctionExpression.Update(instance, sqlFunctionExpression.Arguments);
}
Expand All @@ -1027,8 +1026,7 @@ protected override Expression VisitSqlFunction(SqlFunctionExpression sqlFunction
(arguments[i], _) = VisitInternal<SqlExpression>(sqlFunctionExpression.Arguments[i]);
}

// TODO: #18555
_nullable = true;
_nullable = sqlFunctionExpression.IsNullable;

return sqlFunctionExpression.Update(instance, arguments);
}
Expand Down

0 comments on commit 3963348

Please sign in to comment.