mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-02 20:02:47 +08:00
Update SqlServerBuilder
This commit is contained in:
parent
ccd0e38fba
commit
75c1a5a08b
@ -14,7 +14,7 @@ namespace SqlSugar
|
||||
|
||||
public override string RemoveParentheses(string sql)
|
||||
{
|
||||
if (sql.Contains("ORDER BY")&&!sql.StartsWith("(SELECT TOP 1"))
|
||||
if (sql.Contains("ORDER BY")&&!sql.StartsWith("(SELECT TOP 1")&&!sql.Contains("(SELECT TOP 1000000"))
|
||||
{
|
||||
sql = $"SELECT * FROM {sql.Replace("(SELECT ", "(SELECT TOP 1000000")} TEMP";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user