Adds support for mysql's drop index (#1864)

Co-authored-by: Ifeanyi Ubah <ify1992@yahoo.com>
This commit is contained in:
Dmitriy Mazurin 2025-05-30 08:16:36 +01:00 committed by GitHub
parent a8bde39efb
commit 80d47eee84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 58 additions and 11 deletions

View file

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