HHH-6856 - RowValueConstructorSyntax with In syntax is not working

This commit is contained in:
Steve Ebersole 2011-11-29 10:07:11 -06:00
parent eca04896c9
commit bcc60208e3
1 changed files with 11 additions and 7 deletions

View File

@ -309,24 +309,28 @@ inList
; ;
simpleExprList simpleExprList
: { out("("); } (e:simpleExprWithVectorExpr { separator(e," , "); } )* { out(")"); } : { out("("); } (e:simpleOrTupleExpr { separator(e," , "); } )* { out(")"); }
; ;
simpleExprWithVectorExpr simpleOrTupleExpr
: simpleExpr : simpleExpr
| #( VECTOR_EXPR { out("("); } (e:expr { separator(e," , "); } )* { out(")"); } ) | tupleExpr
; ;
// A simple expression, or a sub-select with parens around it. // A simple expression, or a sub-select with parens around it.
expr expr
: simpleExpr : simpleExpr
| #( VECTOR_EXPR { out("("); } (e:expr { separator(e," , "); } )* { out(")"); } ) | tupleExpr
| parenSelect | parenSelect
| #(ANY { out("any "); } quantified ) | #(ANY { out("any "); } quantified )
| #(ALL { out("all "); } quantified ) | #(ALL { out("all "); } quantified )
| #(SOME { out("some "); } quantified ) | #(SOME { out("some "); } quantified )
; ;
tupleExpr
: #( VECTOR_EXPR { out("("); } (e:expr { separator(e," , "); } )* { out(")"); } )
;
quantified quantified
: { out("("); } ( sqlToken | selectStatement ) { out(")"); } : { out("("); } ( sqlToken | selectStatement ) { out(")"); }
; ;