datafusion-sqlparse/tests
Nickolay Ponomarev 707c58ad57 Support parsing of multiple statements (5/5)
Parser::parse_sql() can now parse a semicolon-separated list of
statements, returning them in a Vec<SQLStatement>.

To support this we:

  - Move handling of inter-statement tokens from the end of individual
    statement parsers (`parse_select` and `parse_delete`; this was not
    implemented for other top-level statements) to the common
    statement-list parsing code (`parse_sql`);

  - Change the "Unexpected token at end of ..." error, which didn't have
    tests and prevented us from parsing successive statements  ->
    "Expected end of statement" (i.e. a delimiter - currently only ";" -
    or the EOF);

  - Add PartialEq on ParserError to be able to assert_eq!() that parsing
    statements that do not terminate properly returns an expected error.
2019-02-07 05:24:54 +03:00
..
sqlparser_ansi.rs Separate statement from expr parsing (4/5) 2019-01-31 15:54:57 +03:00
sqlparser_generic.rs Support parsing of multiple statements (5/5) 2019-02-07 05:24:54 +03:00
sqlparser_postgres.rs Support parsing of multiple statements (5/5) 2019-02-07 05:24:54 +03:00