Support DROP TEMPORARY TABLE, MySQL syntax (#916)

This commit is contained in:
liadgiladi 2023-08-07 17:54:24 +03:00 committed by GitHub
parent 10a6ec5637
commit eb4be98980
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 40 additions and 1 deletions

View file

@ -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!(),
}