code optimization

This commit is contained in:
sunkaixuna
2021-08-05 21:17:00 +08:00
parent 73d14f0437
commit f7b87a78d9

View File

@@ -478,9 +478,9 @@ namespace SqlSugar
}
public string GetSqlQuerySql(string result)
{
var old = result;
if (this.IsSqlQuery && (Skip == null && Take == null))
{
var old = result;
result = System.Text.RegularExpressions.Regex.Match(result, @"^SELECT .* FROM \(((.|\n|\r)*)\) t $").Groups[1].Value;
if (string.IsNullOrEmpty(result))
{