Synchronization code

This commit is contained in:
sunkaixuan
2024-03-12 17:47:38 +08:00
parent 3e328f3aec
commit 34bdb7d5ac

View File

@@ -61,7 +61,7 @@ namespace SqlSugar
{
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
}
else if (this.Context is PostgreSQLExpressionContext)
else if (this.Context is PostgreSQLExpressionContext||this.Context?.SugarContext?.Context?.CurrentConnectionConfig?.MoreSettings?.DatabaseModel==DbType.PostgreSQL)
{
return "limit 1";
}