Format sql

This commit is contained in:
sunkaixuan 2022-03-16 21:09:22 +08:00
parent 6cee4d547d
commit bac712c597

View File

@ -641,12 +641,12 @@ namespace SqlSugar
result += UtilConstants.Space;
if (IsSingle() && result.Contains("MergeTable") && result.Trim().EndsWith(" MergeTable") && TableShortName != null)
{
result = result.Replace(") MergeTable ", ") " + TableShortName);
result = result.Replace(") MergeTable ", ") " + TableShortName+UtilConstants.Space);
TableShortName = null;
}
if (IsSingle() && result.Contains("unionTable") && result.Trim().EndsWith(" unionTable")&& TableShortName!=null)
{
result = result.Replace(" ) unionTable ", ") "+TableShortName);
result = result.Replace(" ) unionTable ", ") "+TableShortName + UtilConstants.Space);
TableShortName = null;
}
if (this.TableShortName.HasValue())