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

Commit 81bc88a

Browse files
committed
Prevent critical reserved words as aliases.
1 parent 48b1d47 commit 81bc88a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/grammar.pegjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1423,7 +1423,7 @@ table_or_sub_select "Subquery"
14231423
}
14241424

14251425
alias "Alias"
1426-
= a:( AS ( !name_char o ) )? n:( name ) o
1426+
= a:( AS ( !( name_char / reserved_critical_list ) o ) )? n:( name ) o
14271427
{
14281428
return {
14291429
'alias': n

0 commit comments

Comments
 (0)