8000 HHH-6856 - RowValueConstructorSyntax with In syntax is not working · JavaInCloud/hibernate-orm@bcc6020 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit bcc6020

Browse files
committed
HHH-6856 - RowValueConstructorSyntax with In syntax is not working
1 parent eca0489 commit bcc6020

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

hibernate-core/src/main/antlr/sql-gen.g

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,24 +309,28 @@ inList
309309
;
310310
311311
simpleExprList
312-
: { out("("); } (e:simpleExprWithVectorExpr { separator(e," , "); } )* { out(")"); }
312+
: { out("("); } (e:simpleOrTupleExpr { separator(e," , "); } )* { out(")"); }
313313
;
314314
315-
simpleExprWithVectorExpr
316-
: simpleExpr
317-
| #( VECTOR_EXPR { out("("); } (e:expr { separator(e," , "); } )* { out(")"); } )
318-
;
315+
simpleOrTupleExpr
316+
: simpleExpr
317+
| tupleExpr
318+
;
319319
320320
// A simple expression, or a sub-select with parens around it.
321321
expr
322322
: simpleExpr
323-
| #( VECTOR_EXPR { out("("); } (e:expr { separator(e," , "); } )* { out(")"); } )
323+
| tupleExpr
324324
| parenSelect
325325
| #(ANY { out("any "); } quantified )
326326
| #(ALL { out("all "); } quantified )
327327
| #(SOME { out("some "); } quantified )
328328
;
329-
329+
330+
tupleExpr
331+
: #( VECTOR_EXPR { out("("); } (e:expr { separator(e," , "); } )* { out(")"); } )
332+
;
333+
330334
quantified
331335
: { out("("); } ( sqlToken | selectStatement ) { out(")"); }
332336
;

0 commit comments

Comments
 (0)
0