Skip to content

Commit

Permalink
feat: ParenthesedSelect can have Alias
Browse files Browse the repository at this point in the history
Signed-off-by: Andreas Reichel <[email protected]>
  • Loading branch information
manticore-projects committed Feb 6, 2025
1 parent 8c05188 commit a510f13
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -2280,6 +2280,7 @@ Select Select() #Select:
Offset offset = null;
Fetch fetch = null;
WithIsolation withIsolation = null;
Alias alias = null;
}
{
(
Expand All @@ -2290,7 +2291,7 @@ Select Select() #Select:
|
LOOKAHEAD(3) select = Values()
|
LOOKAHEAD(3) select = ParenthesedSelect()
LOOKAHEAD(3) select = ParenthesedSelect() [ LOOKAHEAD(2) alias = Alias() {select.setAlias(alias);} ]
)
[ LOOKAHEAD(2) select = FromQueryFromSelect(select) ]
[ LOOKAHEAD(2) select = SetOperationList(select) ]
Expand Down

0 comments on commit a510f13

Please sign in to comment.