mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 22:11:36 +08:00
Update exp to sql
This commit is contained in:
parent
800a4c2ef4
commit
f679f71ced
@ -61,6 +61,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
||||||
}
|
}
|
||||||
|
else if (this.Context is PostgreSQLExpressionContext)
|
||||||
|
{
|
||||||
|
return "limit 1";
|
||||||
|
}
|
||||||
else if (this.Context.GetLimit()!=null)
|
else if (this.Context.GetLimit()!=null)
|
||||||
{
|
{
|
||||||
return this.Context.GetLimit();
|
return this.Context.GetLimit();
|
||||||
|
@ -61,6 +61,10 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
return (HasWhere?"AND":"WHERE")+ " ROWNUM=1";
|
||||||
}
|
}
|
||||||
|
else if (this.Context is PostgreSQLExpressionContext)
|
||||||
|
{
|
||||||
|
return "limit 1";
|
||||||
|
}
|
||||||
else if (this.Context.GetLimit()!=null)
|
else if (this.Context.GetLimit()!=null)
|
||||||
{
|
{
|
||||||
return this.Context.GetLimit();
|
return this.Context.GetLimit();
|
||||||
|
Loading…
Reference in New Issue
Block a user