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

Commit 0b9e889

Browse files
committed
Move mysql check to the MySqlExpression .
1 parent fe6a857 commit 0b9e889

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ServiceStack.OrmLite.MySql/MySqlExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public override string ToDeleteRowStatement()
1717
: base.ToDeleteRowStatement();
1818
}
1919

20-
protected override string CreateInSubQuerySql(string quotedColName, string subSelect)
20+
protected override string CreateInSubQuerySql(object quotedColName, string subSelect)
2121
{
2222
return $"{quotedColName} IN (SELECT * FROM ({subSelect}) SubQuery)";
2323
}

src/ServiceStack.OrmLite/Expressions/SqlExpression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2270,7 +2270,7 @@ protected string ConvertInExpressionToSql(MethodCallExpression m, object quotedC
22702270
throw new NotSupportedException($"In({argValue.GetType()})");
22712271
}
22722272

2273-
protected virtual string CreateInSubQuerySql(string quotedColName,string subSelect)
2273+
protected virtual string CreateInSubQuerySql(object quotedColName,string subSelect)
22742274
{
22752275
return $"{quotedColName} IN ({subSelect})";
22762276
}

0 commit comments

Comments
 (0)