@@ -336,8 +336,8 @@ public QueryTokenStream visitEntityWithJoins(HqlParser.EntityWithJoinsContext ct
336
336
337
337
QueryRendererBuilder builder = QueryRenderer .builder ();
338
338
339
- builder .appendExpression (visit (ctx .fromRoot ()));
340
- builder .appendInline (QueryTokenStream .concat (ctx .joinSpecifier (), this ::visit , TOKEN_SPACE ));
339
+ builder .appendInline (visit (ctx .fromRoot ()));
340
+ builder .appendInline (QueryTokenStream .concat (ctx .joinSpecifier (), this ::visit , EMPTY_TOKEN ));
341
341
342
342
return builder ;
343
343
}
@@ -396,6 +396,7 @@ public QueryTokenStream visitJoin(HqlParser.JoinContext ctx) {
396
396
397
397
QueryRendererBuilder builder = QueryRenderer .builder ();
398
398
399
+ builder .append (TOKEN_SPACE );
399
400
builder .append (visit (ctx .joinType ()));
400
401
builder .append (QueryTokens .expression (ctx .JOIN ()));
401
402
@@ -753,7 +754,7 @@ public QueryTokenStream visitOffsetClause(HqlParser.OffsetClauseContext ctx) {
753
754
QueryRendererBuilder builder = QueryRenderer .builder ();
754
755
755
756
builder .append (QueryTokens .expression (ctx .OFFSET ()));
756
- builder .append (visit (ctx .parameterOrIntegerLiteral ()));
757
+ builder .appendExpression (visit (ctx .parameterOrIntegerLiteral ()));
757
758
758
759
if (ctx .ROW () != null ) {
759
760
builder .append (QueryTokens .expression (ctx .ROW ()));
@@ -3384,7 +3385,7 @@ public QueryTokenStream visitEveryFunction(HqlParser.EveryFunctionContext ctx) {
3384
3385
builder .append (TOKEN_CLOSE_PAREN );
3385
3386
} else {
3386
3387
3387
- builder .appendExpression (visit (ctx .collectionQuantifier ()));
3388
+ builder .append (visit (ctx .collectionQuantifier ()));
3388
3389
3389
3390
builder .append (TOKEN_OPEN_PAREN );
3390
3391
builder .appendInline (visit (ctx .simplePath ()));
@@ -3419,7 +3420,7 @@ public QueryTokenStream visitAnyFunction(HqlParser.AnyFunctionContext ctx) {
3419
3420
builder .append (TOKEN_CLOSE_PAREN );
3420
3421
} else {
3421
3422
3422
- builder .appendExpression (visit (ctx .collectionQuantifier ()));
3423
+ builder .append (visit (ctx .collectionQuantifier ()));
3423
3424
3424
3425
builder .append (TOKEN_OPEN_PAREN );
3425
3426
builder .appendInline (visit (ctx .simplePath ()));
@@ -3808,9 +3809,9 @@ public QueryTokenStream visitInList(HqlParser.InListContext ctx) {
3808
3809
if (ctx .simplePath () != null ) {
3809
3810
3810
3811
if (ctx .ELEMENTS () != null ) {
3811
- builder .append (QueryTokens .expression (ctx .ELEMENTS ()));
3812
+ builder .append (QueryTokens .token (ctx .ELEMENTS ()));
3812
3813
} else if (ctx .INDICES () != null ) {
3813
- builder .append (QueryTokens .expression (ctx .INDICES ()));
3814
+ builder .append (QueryTokens .token (ctx .INDICES ()));
3814
3815
}
3815
3816
3816
3817
builder .append (TOKEN_OPEN_PAREN );
@@ -3843,9 +3844,9 @@ public QueryTokenStream visitExistsExpression(HqlParser.ExistsExpressionContext
3843
3844
builder .append (QueryTokens .expression (ctx .EXISTS ()));
3844
3845
3845
3846
if (ctx .ELEMENTS () != null ) {
3846
- builder .append (QueryTokens .expression (ctx .ELEMENTS ()));
3847
+ builder .append (QueryTokens .token (ctx .ELEMENTS ()));
3847
3848
} else if (ctx .INDICES () != null ) {
3848
- builder .append (QueryTokens .expression (ctx .INDICES ()));
3849
+ builder .append (QueryTokens .token (ctx .INDICES ()));
3849
3850
}
3850
3851
3851
3852
builder .append (TOKEN_OPEN_PAREN );
0 commit comments