mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
-
This commit is contained in:
parent
01b6d473e0
commit
6273da8ab1
@ -478,11 +478,15 @@ namespace SqlSugar
|
||||
}
|
||||
public string GetSqlQuerySql(string result)
|
||||
{
|
||||
var old = result;
|
||||
if (this.IsSqlQuery && (Skip == null && Take == null))
|
||||
{
|
||||
result = System.Text.RegularExpressions.Regex.Match(result, @"^SELECT .* FROM \(((.|\n|\r)*)\) t $").Groups[1].Value;
|
||||
}
|
||||
|
||||
if (string.IsNullOrEmpty(result))
|
||||
{
|
||||
result = old;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
#endregion
|
||||
|
Loading…
Reference in New Issue
Block a user