mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-23 20:43:46 +08:00
Format sql
This commit is contained in:
@@ -641,12 +641,12 @@ namespace SqlSugar
|
|||||||
result += UtilConstants.Space;
|
result += UtilConstants.Space;
|
||||||
if (IsSingle() && result.Contains("MergeTable") && result.Trim().EndsWith(" MergeTable") && TableShortName != null)
|
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;
|
TableShortName = null;
|
||||||
}
|
}
|
||||||
if (IsSingle() && result.Contains("unionTable") && result.Trim().EndsWith(" unionTable")&& 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;
|
TableShortName = null;
|
||||||
}
|
}
|
||||||
if (this.TableShortName.HasValue())
|
if (this.TableShortName.HasValue())
|
||||||
|
Reference in New Issue
Block a user