mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-05 17:37:58 +08:00
Synchronization code
This commit is contained in:
parent
d269575232
commit
bbe816541b
@ -11,5 +11,15 @@ namespace SqlSugar
|
||||
{
|
||||
public override string SqlTranslationLeft { get { return "["; } }
|
||||
public override string SqlTranslationRight { get { return "]"; } }
|
||||
|
||||
public override string RemoveParentheses(string sql)
|
||||
{
|
||||
if (sql.Contains("ORDER BY"))
|
||||
{
|
||||
sql = $"SELECT * FROM {sql.Replace("(SELECT ", "(SELECT TOP 1000000")} TEMP";
|
||||
}
|
||||
return sql;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user