mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-01-26 21:38:32 +08:00
code optimization
This commit is contained in:
@@ -478,9 +478,9 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public string GetSqlQuerySql(string result)
|
public string GetSqlQuerySql(string result)
|
||||||
{
|
{
|
||||||
var old = result;
|
|
||||||
if (this.IsSqlQuery && (Skip == null && Take == null))
|
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;
|
result = System.Text.RegularExpressions.Regex.Match(result, @"^SELECT .* FROM \(((.|\n|\r)*)\) t $").Groups[1].Value;
|
||||||
if (string.IsNullOrEmpty(result))
|
if (string.IsNullOrEmpty(result))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user