Skip to content
This repository was archived by the owner on Jul 15, 2021. It is now read-only.

Commit 48b1d47

Browse files
committed
Allow a subquery to have an alias in FROM clause.
1 parent 939b741 commit 48b1d47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/grammar.pegjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1413,8 +1413,8 @@ index_node_none
14131413
}
14141414

14151415
table_or_sub_sub "SELECT Source"
1416-
= sym_popen l:( select_source ) o sym_pclose
1417-
{ return l; }
1416+
= sym_popen l:( select_source ) o sym_pclose a:( alias )?
1417+
{ return Object.assign(l, a); }
14181418

14191419
table_or_sub_select "Subquery"
14201420
= s:( select_wrapped ) a:( alias )?

0 commit comments

Comments
 (0)