Skip to content

Commit dc48a50

Browse files
authored
refactor(postgresql): introduce joined_table rule to simplify make logic (#21)
1 parent ae53b19 commit dc48a50

6 files changed

Lines changed: 14386 additions & 14392 deletions

postgresql/PostgreSQLParser.g4

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3048,16 +3048,14 @@ table_ref
30483048
| func_table func_alias_clause?
30493049
| select_with_parens opt_alias_clause?
30503050
)
3051-
| OPEN_PAREN table_ref (
3052-
CROSS JOIN table_ref
3053-
| NATURAL join_type? JOIN table_ref
3054-
| join_type? JOIN table_ref join_qual
3055-
)? CLOSE_PAREN opt_alias_clause?
3056-
) (
3057-
CROSS JOIN table_ref
3058-
| NATURAL join_type? JOIN table_ref
3059-
| join_type? JOIN table_ref join_qual
3060-
)*
3051+
| OPEN_PAREN table_ref joined_table? CLOSE_PAREN opt_alias_clause?
3052+
) joined_table*
3053+
;
3054+
3055+
joined_table
3056+
: CROSS JOIN table_ref
3057+
| NATURAL join_type? JOIN table_ref
3058+
| join_type? JOIN table_ref join_qual
30613059
;
30623060

30633061
alias_clause

0 commit comments

Comments
 (0)