Skip to content

Commit

Permalink
Query: Remove applying default type mapping
Browse files Browse the repository at this point in the history
Resolves #19567
Non-issue
  • Loading branch information
smitpatel committed Feb 7, 2020
1 parent 3d2f67b commit 8fb06e1
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/EFCore.Cosmos/Query/Internal/StringMethodTranslator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ public virtual SqlExpression Translate(SqlExpression instance, MethodInfo method
}

private SqlExpression TranslateSystemFunction(string function, SqlExpression instance, SqlExpression pattern, Type returnType)
{
Check.NotNull(instance, nameof(instance));
return _sqlExpressionFactory.ApplyDefaultTypeMapping(
_sqlExpressionFactory.Function(
function,
new[] { instance, pattern },
returnType));
}
=> _sqlExpressionFactory.Function(function, new[] { instance, pattern }, returnType);
}
}

0 comments on commit 8fb06e1

Please sign in to comment.