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
18 changes: 8 additions & 10 deletions postgresql/PostgreSQLParser.g4
Original file line number Diff line number Diff line change
Expand Up @@ -3048,16 +3048,14 @@ table_ref
| func_table func_alias_clause?
| select_with_parens opt_alias_clause?
)
| OPEN_PAREN table_ref (
CROSS JOIN table_ref
| NATURAL join_type? JOIN table_ref
| join_type? JOIN table_ref join_qual
)? CLOSE_PAREN opt_alias_clause?
) (
CROSS JOIN table_ref
| NATURAL join_type? JOIN table_ref
| join_type? JOIN table_ref join_qual
)*
| OPEN_PAREN table_ref joined_table? CLOSE_PAREN opt_alias_clause?
) joined_table*
;

joined_table
: CROSS JOIN table_ref
| NATURAL join_type? JOIN table_ref
| join_type? JOIN table_ref join_qual
;

alias_clause
Expand Down
Loading