Update exp to sql

This commit is contained in:
sunkaixuan 2022-08-28 20:36:24 +08:00
parent 800a4c2ef4
commit f679f71ced
2 changed files with 8 additions and 0 deletions

View File

@ -61,6 +61,10 @@ namespace SqlSugar
{
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
}
else if (this.Context is PostgreSQLExpressionContext)
{
return "limit 1";
}
else if (this.Context.GetLimit()!=null)
{
return this.Context.GetLimit();

View File

@ -61,6 +61,10 @@ namespace SqlSugar
{
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
}
else if (this.Context is PostgreSQLExpressionContext)
{
return "limit 1";
}
else if (this.Context.GetLimit()!=null)
{
return this.Context.GetLimit();