From 5b5f40e3ce29d2d9514a13084a288747221ce5fd Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Mon, 24 Jun 2024 15:35:59 +0200 Subject: [PATCH] Fix build regression #33715 and #34002 were developed concurrently. Their merge does not build because of some changes in the types returned by `ISqlExpressionFactory`. --- .../Internal/Translators/SqlServerStringMethodTranslator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/EFCore.SqlServer/Query/Internal/Translators/SqlServerStringMethodTranslator.cs b/src/EFCore.SqlServer/Query/Internal/Translators/SqlServerStringMethodTranslator.cs index f1663ec86cb..49064a8293d 100644 --- a/src/EFCore.SqlServer/Query/Internal/Translators/SqlServerStringMethodTranslator.cs +++ b/src/EFCore.SqlServer/Query/Internal/Translators/SqlServerStringMethodTranslator.cs @@ -384,7 +384,7 @@ private SqlExpression TranslateIndexOf( private SqlExpression? ProcessTrimStartEnd(SqlExpression instance, IReadOnlyList arguments, string functionName) { - SqlConstantExpression? charactersToTrim = null; + SqlExpression? charactersToTrim = null; if (arguments.Count > 0 && arguments[0] is SqlConstantExpression { Value: var charactersToTrimValue }) { charactersToTrim = charactersToTrimValue switch