mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Update oracle
This commit is contained in:
parent
4f359c121b
commit
2398274b51
@ -87,7 +87,7 @@ namespace SqlSugar
|
||||
sql.Replace(UtilConstants.ReplaceKey, isRowNumber ? (isIgnoreOrderBy ? null : rowNumberString) : null);
|
||||
if (isIgnoreOrderBy) { this.OrderByValue = oldOrderBy; return sql.ToString(); }
|
||||
var result = ToPageSql(sql.ToString(), this.Take, this.Skip);
|
||||
if (this.Take == 1 && this.Skip == 0&&oldOrderBy== "ORDER BY sysdate ")
|
||||
if (this.GetGroupByString==null&&this.Take == 1 && this.Skip == 0&&oldOrderBy== "ORDER BY sysdate ")
|
||||
{
|
||||
result = $" {sql.ToString()} {(this.WhereInfos.Any()?"AND":"WHERE")} ROWNUM = 1 ";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user