mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-08-31 03:07:20 +00:00
Support DROP TEMPORARY TABLE
, MySQL syntax (#916)
This commit is contained in:
parent
10a6ec5637
commit
eb4be98980
4 changed files with 40 additions and 1 deletions
|
@ -5432,6 +5432,7 @@ fn parse_drop_table() {
|
|||
names,
|
||||
cascade,
|
||||
purge: _,
|
||||
temporary,
|
||||
..
|
||||
} => {
|
||||
assert!(!if_exists);
|
||||
|
@ -5441,6 +5442,7 @@ fn parse_drop_table() {
|
|||
names.iter().map(ToString::to_string).collect::<Vec<_>>()
|
||||
);
|
||||
assert!(!cascade);
|
||||
assert!(!temporary);
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
@ -5453,6 +5455,7 @@ fn parse_drop_table() {
|
|||
names,
|
||||
cascade,
|
||||
purge: _,
|
||||
temporary,
|
||||
..
|
||||
} => {
|
||||
assert!(if_exists);
|
||||
|
@ -5462,6 +5465,7 @@ fn parse_drop_table() {
|
|||
names.iter().map(ToString::to_string).collect::<Vec<_>>()
|
||||
);
|
||||
assert!(cascade);
|
||||
assert!(!temporary);
|
||||
}
|
||||
_ => unreachable!(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue