Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit dbf6759

Browse files
committed
Use quotes column name for GetUpdateOnlyWhereExpression
1 parent e887d27 commit dbf6759

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite/Expressions/WriteExpressionCommandExtensions.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ internal static string GetUpdateOnlyWhereExpression<T>(this IOrmLiteDialectProvi
201201
if (modelDef.RowVersion == null || !updateFields.TryGetValue(ModelDefinition.RowVersionName, out var rowVersion))
202202
{
203203
args = new[] { idValue };
204-
return "(" + pkField.FieldName + " = {0})";
204+
return "(" + dialectProvider.GetQuotedColumnName(pkField.FieldName) + " = {0})";
205205
}
206206

207207
args = new[] { idValue, rowVersion };

0 commit comments

Comments
 (0)