mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Adds support for mysql's drop index (#1864)
Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
parent
a8bde39efb
commit
80d47eee84
3 changed files with 58 additions and 11 deletions
|
@ -6255,6 +6255,11 @@ impl<'a> Parser<'a> {
|
|||
loc
|
||||
);
|
||||
}
|
||||
let table = if self.parse_keyword(Keyword::ON) {
|
||||
Some(self.parse_object_name(false)?)
|
||||
} else {
|
||||
None
|
||||
};
|
||||
Ok(Statement::Drop {
|
||||
object_type,
|
||||
if_exists,
|
||||
|
@ -6263,6 +6268,7 @@ impl<'a> Parser<'a> {
|
|||
restrict,
|
||||
purge,
|
||||
temporary,
|
||||
table,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue