Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 8 additions & 3 deletions postgresql/PostgreSQLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2821,8 +2821,7 @@ select_with_parens
;

select_no_parens
: select_clause opt_sort_clause? (for_locking_clause opt_select_limit? | select_limit opt_for_locking_clause?)?
| with_clause select_clause opt_sort_clause? (for_locking_clause opt_select_limit? | select_limit opt_for_locking_clause?)?
: with_clause? select_clause opt_sort_clause? (for_locking_clause opt_select_limit? | select_limit opt_for_locking_clause?)?
;

select_clause
Expand Down Expand Up @@ -3549,7 +3548,13 @@ plsqlvariablename
;

func_application
: func_name OPEN_PAREN (func_arg_list (COMMA VARIADIC func_arg_expr)? opt_sort_clause? | VARIADIC func_arg_expr opt_sort_clause? | (ALL | DISTINCT) func_arg_list opt_sort_clause? | STAR |) CLOSE_PAREN
: func_name OPEN_PAREN (
func_arg_list (COMMA VARIADIC func_arg_expr)? opt_sort_clause?
| VARIADIC func_arg_expr opt_sort_clause?
| (ALL | DISTINCT) func_arg_list opt_sort_clause?
| STAR
|
) CLOSE_PAREN
;

func_expr
Expand Down
Loading