datafusion-sqlparse/tests
Nickolay Ponomarev d0f2de06ed Refactor parse_joins, pt.2: implicit/cross/natural joins
- 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 `)
2019-06-03 02:44:03 +03:00
..
sqlparser_common.rs Refactor parse_joins, pt.2: implicit/cross/natural joins 2019-06-03 02:44:03 +03:00
sqlparser_mssql.rs [mssql] Support single-quoted column aliases 2019-06-02 13:48:14 +03:00
sqlparser_postgres.rs Support parsing constraints in CREATE TABLE 2019-06-02 13:54:16 +03:00