mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-12-05 03:17:41 +08:00
Synchronization code
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user