@@ -213,10 +213,10 @@ protected virtual void FromFragmentSeparator(IASTNode a)
213
213
else if ( right . RealOrigin == left || ( right . RealOrigin != null && right . RealOrigin == left . RealOrigin ) )
214
214
{
215
215
// right represents a joins originating from left; or
216
- // both right and left reprersent joins originating from the same FromElement
216
+ // both right and left represent joins originating from the same FromElement
217
217
if ( right . JoinSequence != null && right . JoinSequence . IsThetaStyle )
218
218
{
219
- Out ( ", " ) ;
219
+ WriteCrossJoinSeparator ( ) ;
220
220
}
221
221
else
222
222
{
@@ -226,10 +226,15 @@ protected virtual void FromFragmentSeparator(IASTNode a)
226
226
else
227
227
{
228
228
// these are just two unrelated table references
229
- Out ( ", " ) ;
229
+ WriteCrossJoinSeparator ( ) ;
230
230
}
231
231
}
232
232
233
+ private void WriteCrossJoinSeparator ( )
234
+ {
235
+ Out ( sessionFactory . Dialect . CrossJoinSeparator ) ;
236
+ }
237
+
233
238
protected virtual void NestedFromFragment ( IASTNode d , IASTNode parent )
234
239
{
235
240
// check a set of parent/child nodes in the from-clause tree
@@ -246,7 +251,7 @@ protected virtual void NestedFromFragment(IASTNode d, IASTNode parent)
246
251
// right represents a joins originating from left...
247
252
if ( right . JoinSequence != null && right . JoinSequence . IsThetaStyle )
248
253
{
249
- Out ( ", " ) ;
254
+ WriteCrossJoinSeparator ( ) ;
250
255
}
251
256
else
252
257
{
@@ -257,7 +262,7 @@ protected virtual void NestedFromFragment(IASTNode d, IASTNode parent)
257
262
{
258
263
// not so sure this is even valid subtree. but if it was, it'd
259
264
// represent two unrelated table references...
260
- Out ( ", " ) ;
265
+ WriteCrossJoinSeparator ( ) ;
261
266
}
262
267
}
263
268
0 commit comments