提交 75e0f20e 编写于 作者: A Adam Schroder

Fix Postgres default insert sql

上级 8378a6f4
...@@ -22,7 +22,7 @@ public override object ExecuteInsert(Database db, IDbCommand cmd, string primary ...@@ -22,7 +22,7 @@ public override object ExecuteInsert(Database db, IDbCommand cmd, string primary
{ {
if (primaryKeyName != null) if (primaryKeyName != null)
{ {
cmd.CommandText += string.Format("returning {0} as NewID", EscapeSqlIdentifier(primaryKeyName)); cmd.CommandText += string.Format(" returning {0} as NewID", EscapeSqlIdentifier(primaryKeyName));
return db.ExecuteScalarHelper(cmd); return db.ExecuteScalarHelper(cmd);
} }
else else
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册