Skip to content

Commit a510f13

Browse files
feat: ParenthesedSelect can have Alias
Signed-off-by: Andreas Reichel <[email protected]>
1 parent 8c05188 commit a510f13

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2280,6 +2280,7 @@ Select Select() #Select:
22802280
Offset offset = null;
22812281
Fetch fetch = null;
22822282
WithIsolation withIsolation = null;
2283+
Alias alias = null;
22832284
}
22842285
{
22852286
(
@@ -2290,7 +2291,7 @@ Select Select() #Select:
22902291
|
22912292
LOOKAHEAD(3) select = Values()
22922293
|
2293-
LOOKAHEAD(3) select = ParenthesedSelect()
2294+
LOOKAHEAD(3) select = ParenthesedSelect() [ LOOKAHEAD(2) alias = Alias() {select.setAlias(alias);} ]
22942295
)
22952296
[ LOOKAHEAD(2) select = FromQueryFromSelect(select) ]
22962297
[ LOOKAHEAD(2) select = SetOperationList(select) ]

0 commit comments

Comments
 (0)