mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-04 06:18:17 +00:00
Encapsulate Insert
and Delete
into specific structs (#1224)
Signed-off-by: tison <wander4096@gmail.com>
This commit is contained in:
parent
d2c2b15f9e
commit
bf89b7d808
7 changed files with 187 additions and 147 deletions
|
@ -90,10 +90,10 @@ fn parse_raw_literal() {
|
|||
fn parse_delete_statement() {
|
||||
let sql = "DELETE \"table\" WHERE 1";
|
||||
match bigquery_and_generic().verified_stmt(sql) {
|
||||
Statement::Delete {
|
||||
Statement::Delete(Delete {
|
||||
from: FromTable::WithoutKeyword(from),
|
||||
..
|
||||
} => {
|
||||
}) => {
|
||||
assert_eq!(
|
||||
TableFactor::Table {
|
||||
name: ObjectName(vec![Ident::with_quote('"', "table")]),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue