mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 13:34:32 +08:00
Update subquery.tolist
This commit is contained in:
parent
949a2bed34
commit
0d7bdf0286
@ -29,9 +29,9 @@ namespace SqlSugar
|
||||
|
||||
public override string RemoveParentheses(string sql)
|
||||
{
|
||||
if (sql.Contains(" Order By "))
|
||||
if (sql.Contains(" ORDER BY")&&sql.StartsWith("(")&&sql.EndsWith(")") &&!sql.ToLower().Contains("limit"))
|
||||
{
|
||||
sql = $" SELECT * FROM {sql} MYSQL_UNIONALL_ITEM ";
|
||||
sql = $" {sql.TrimEnd(')')} limit 0,{int.MaxValue}) ";
|
||||
}
|
||||
return sql;
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
<package >
|
||||
<metadata>
|
||||
<id>SqlSugarCore</id>
|
||||
<version>5.1.4.194-preview16</version>
|
||||
<version>5.1.4.194-preview19</version>
|
||||
<authors>sunkaixuan</authors>
|
||||
<owners>果糖大数据科技</owners>
|
||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user