mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-13 07:22:02 +00:00
Support for CONNECT BY (#1138)
This commit is contained in:
parent
deaa6d8151
commit
0b5722afbf
16 changed files with 319 additions and 4 deletions
|
@ -157,6 +157,16 @@ impl TestedDialects {
|
|||
}
|
||||
}
|
||||
|
||||
/// Ensures that `sql` parses as a single [Query], and that
|
||||
/// re-serializing the parse result matches the given canonical
|
||||
/// sql string.
|
||||
pub fn verified_query_with_canonical(&self, query: &str, canonical: &str) -> Query {
|
||||
match self.one_statement_parses_to(query, canonical) {
|
||||
Statement::Query(query) => *query,
|
||||
_ => panic!("Expected Query"),
|
||||
}
|
||||
}
|
||||
|
||||
/// Ensures that `sql` parses as a single [Select], and that
|
||||
/// re-serializing the parse result produces the same `sql`
|
||||
/// string (is not modified after a serialization round-trip).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue