Skip to content

Commit

Permalink
fix(postgresql): change func_application to add column_name and paren (
Browse files Browse the repository at this point in the history
…DTStack#359)

* fix(postgresql): change func_application to add column_name and ()

* fix(postgresql): add column_name into func_arg_expr
  • Loading branch information
LuckyFBB authored Oct 17, 2024
1 parent d7b94df commit 9a5eda8
Show file tree
Hide file tree
Showing 3 changed files with 2,058 additions and 2,508 deletions.
18 changes: 8 additions & 10 deletions src/grammar/postgresql/PostgreSqlParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -2423,15 +2423,12 @@ primaryExpression
;

func_application
: function_name (
OPEN_PAREN (
func_arg_list (COMMA KW_VARIADIC func_arg_expr)? sort_clause?
| KW_VARIADIC func_arg_expr sort_clause?
| (KW_ALL | KW_DISTINCT) func_arg_list sort_clause?
| STAR
|
) CLOSE_PAREN
)?
: function_name OPEN_PAREN (
func_arg_list (COMMA KW_VARIADIC func_arg_expr)? sort_clause?
| KW_VARIADIC func_arg_expr sort_clause?
| (KW_ALL | KW_DISTINCT) func_arg_list sort_clause?
| STAR
)? CLOSE_PAREN
;

func_expr
Expand Down Expand Up @@ -2599,7 +2596,8 @@ func_arg_list
;

func_arg_expr
: expression
: column_name
| expression
| type_function_name (COLON_EQUALS | EQUALS_GREATER) expression
;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/postgresql/PostgreSqlParser.interp

Large diffs are not rendered by default.

Loading

0 comments on commit 9a5eda8

Please sign in to comment.