@@ -329,8 +329,8 @@ public QueryTokenStream visitEntityWithJoins(HqlParser.EntityWithJoinsContext ct
329
329
330
330
QueryRendererBuilder builder = QueryRenderer .builder ();
331
331
332
- builder .appendExpression (visit (ctx .fromRoot ()));
333
- builder .appendInline (QueryTokenStream .concat (ctx .joinSpecifier (), this ::visit , TOKEN_SPACE ));
332
+ builder .appendInline (visit (ctx .fromRoot ()));
333
+ builder .appendInline (QueryTokenStream .concat (ctx .joinSpecifier (), this ::visit , EMPTY_TOKEN ));
334
334
335
335
return builder ;
336
336
}
@@ -389,6 +389,7 @@ public QueryTokenStream visitJoin(HqlParser.JoinContext ctx) {
389
389
390
390
QueryRendererBuilder builder = QueryRenderer .builder ();
391
391
392
+ builder .append (TOKEN_SPACE );
392
393
builder .append (visit (ctx .joinType ()));
393
394
builder .append (QueryTokens .expression (ctx .JOIN ()));
394
395
@@ -746,7 +747,7 @@ public QueryTokenStream visitOffsetClause(HqlParser.OffsetClauseContext ctx) {
746
747
QueryRendererBuilder builder = QueryRenderer .builder ();
747
748
748
749
builder .append (QueryTokens .expression (ctx .OFFSET ()));
749
- builder .append (visit (ctx .parameterOrIntegerLiteral ()));
750
+ builder .appendExpression (visit (ctx .parameterOrIntegerLiteral ()));
750
751
751
752
if (ctx .ROW () != null ) {
752
753
builder .append (QueryTokens .expression (ctx .ROW ()));
@@ -3377,7 +3378,7 @@ public QueryTokenStream visitEveryFunction(HqlParser.EveryFunctionContext ctx) {
3377
3378
builder .append (TOKEN_CLOSE_PAREN );
3378
3379
} else {
3379
3380
3380
- builder .appendExpression (visit (ctx .collectionQuantifier ()));
3381
+ builder .append (visit (ctx .collectionQuantifier ()));
3381
3382
3382
3383
builder .append (TOKEN_OPEN_PAREN );
3383
3384
builder .appendInline (visit (ctx .simplePath ()));
@@ -3412,7 +3413,7 @@ public QueryTokenStream visitAnyFunction(HqlParser.AnyFunctionContext ctx) {
3412
3413
builder .append (TOKEN_CLOSE_PAREN );
3413
3414
} else {
3414
3415
3415
- builder .appendExpression (visit (ctx .collectionQuantifier ()));
3416
+ builder .append (visit (ctx .collectionQuantifier ()));
3416
3417
3417
3418
builder .append (TOKEN_OPEN_PAREN );
3418
3419
builder .appendInline (visit (ctx .simplePath ()));
@@ -3801,9 +3802,9 @@ public QueryTokenStream visitInList(HqlParser.InListContext ctx) {
3801
3802
if (ctx .simplePath () != null ) {
3802
3803
3803
3804
if (ctx .ELEMENTS () != null ) {
3804
- builder .append (QueryTokens .expression (ctx .ELEMENTS ()));
3805
+ builder .append (QueryTokens .token (ctx .ELEMENTS ()));
3805
3806
} else if (ctx .INDICES () != null ) {
3806
- builder .append (QueryTokens .expression (ctx .INDICES ()));
3807
+ builder .append (QueryTokens .token (ctx .INDICES ()));
3807
3808
}
3808
3809
3809
3810
builder .append (TOKEN_OPEN_PAREN );
@@ -3836,9 +3837,9 @@ public QueryTokenStream visitExistsExpression(HqlParser.ExistsExpressionContext
3836
3837
builder .append (QueryTokens .expression (ctx .EXISTS ()));
3837
3838
3838
3839
if (ctx .ELEMENTS () != null ) {
3839
- builder .append (QueryTokens .expression (ctx .ELEMENTS ()));
3840
+ builder .append (QueryTokens .token (ctx .ELEMENTS ()));
3840
3841
} else if (ctx .INDICES () != null ) {
3841
- builder .append (QueryTokens .expression (ctx .INDICES ()));
3842
+ builder .append (QueryTokens .token (ctx .INDICES ()));
3842
3843
}
3843
3844
3844
3845
builder .append (TOKEN_OPEN_PAREN );
0 commit comments