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

Commit 2fa8808

Browse files
committed
Allow using "@values" for pgsql
1 parent a5264e3 commit 2fa8808

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ServiceStack.OrmLite/OrmLiteReadCommandExtensions.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ internal static IDbCommand SetParameters(this IDbCommand dbCmd, Type type, objec
152152

153153
var sqlIn = StringBuilderCache.ReturnAndFree(sb);
154154
sqlCopy = sqlCopy?.Replace(dialectProvider.ParamString + propName, sqlIn);
155+
if (dialectProvider.ParamString != "@")
156+
sqlCopy = sqlCopy?.Replace("@" + propName, sqlIn);
155157
}
156158
else
157159
{

0 commit comments

Comments
 (0)