Synchronization code

This commit is contained in:
sunkaixuan
2023-11-15 15:34:08 +08:00
parent 1a911bdf40
commit d0f0d28574
2 changed files with 6 additions and 0 deletions

View File

@@ -90,6 +90,11 @@ namespace SqlSugar
return SqlTranslationLeft + name.ToUpper(IsUpper).TrimEnd('"').TrimStart('"') + SqlTranslationRight;
}
}
public override string GetUnionFomatSql(string sql)
{
return " ( " + sql + " ) ";
}
/// <summary>
///

View File

@@ -90,6 +90,7 @@ namespace SqlSugar
if (this.GetGroupByString==null&&this.Take == 1 && this.Skip == 0&&oldOrderBy== "ORDER BY sysdate ")
{
result = $" {sql.ToString()} {(this.WhereInfos.Any()?"AND":"WHERE")} ROWNUM = 1 ";
result = result.Replace(rowNumberString, " ");
}
if (ExternalPageIndex > 0)
{