Skip to content

Commit da1c957

Browse files
committed
SqlCompiler: Append space with no conditions in some places
1 parent 888902e commit da1c957

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Orm/Xtensive.Orm/Sql/Compiler/SqlCompiler.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ public virtual void Visit(SqlOrder node)
13851385
else if (node.Position > 0) {
13861386
_ = context.Output.Append(node.Position.ToString());
13871387
}
1388-
AppendSpaceIfNecessary();
1388+
AppendSpace();
13891389
translator.Translate(context, node, NodeSection.Exit);
13901390
}
13911391
}
@@ -1608,7 +1608,9 @@ protected virtual void VisitSelectFrom(SqlSelect node)
16081608
return;
16091609
}
16101610

1611-
AppendTranslated(node, SelectSection.From);
1611+
AppendSpace();
1612+
translator.Translate(context, node, SelectSection.From);
1613+
AppendSpace();
16121614

16131615
var joinedFrom = node.From as SqlJoinedTable;
16141616
var linearJoinRequired = CheckFeature(QueryFeatures.StrictJoinSyntax) && joinedFrom != null;

0 commit comments

Comments
 (0)