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

Commit 3a90dc9

Browse files
committed
should quote all ValueType's
1 parent 169807a commit 3a90dc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ServiceStack.OrmLite.SqlServer/SqlServer2008OrmLiteDialectProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public override string SqlConcat(IEnumerable<object> args)
1717
sb.Append(" + ");
1818

1919
var argType = arg.GetType();
20-
if (argType.IsNumericType() || argType == typeof(bool) || argType == typeof(DateTime) || argType == typeof(TimeSpan))
20+
if (argType.IsValueType)
2121
{
2222
sb.AppendFormat("'{0}'", arg);
2323
}

0 commit comments

Comments
 (0)