mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-12-10 14:28:56 +00:00
- reduce duplication in the handling of implicit/cross joins and make the flow of data slightly clearer by returning the `join` instead of pushing it and exiting early. (I wanted the block that currently returns `join` to return one of JoinOperator::* tags, so that `parse_table_factor` and the construction of the `Join` struct could happen after we've parsed the JOIN keywords, but that seems impossible.) - move the check for the NATURAL keyword into the block that deals with INNER/OUTER joins that support constraints (and thus can be preceded by "NATURAL") - add a check for NATURAL not followed by a known join type with a test - add more tests for NATURAL joins (we didn't have any), and fix whitespace bug in `to_string()` that was uncovered (we emitted an extra space: `foo NATURAL JOIN bar `) |
||
|---|---|---|
| .. | ||
| sqlparser_common.rs | ||
| sqlparser_mssql.rs | ||
| sqlparser_postgres.rs | ||