mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Synchronization code
This commit is contained in:
parent
75c1a5a08b
commit
c094ba5e11
@ -14,7 +14,7 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public override string RemoveParentheses(string sql)
|
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";
|
sql = $"SELECT * FROM {sql.Replace("(SELECT ", "(SELECT TOP 1000000")} TEMP";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user