mirror of
https://github.com/apache/datafusion-sqlparser-rs.git
synced 2025-10-09 21:42:05 +00:00
Add support for ALTER TABLE DROP INDEX
(#1865)
Some checks are pending
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
Some checks are pending
Rust / codestyle (push) Waiting to run
Rust / lint (push) Waiting to run
Rust / benchmark-lint (push) Waiting to run
Rust / compile (push) Waiting to run
Rust / docs (push) Waiting to run
Rust / compile-no-std (push) Waiting to run
Rust / test (beta) (push) Waiting to run
Rust / test (nightly) (push) Waiting to run
Rust / test (stable) (push) Waiting to run
This commit is contained in:
parent
40d12b98bd
commit
559b7e36d9
4 changed files with 21 additions and 0 deletions
|
@ -8636,6 +8636,9 @@ impl<'a> Parser<'a> {
|
|||
} else if self.parse_keywords(&[Keyword::FOREIGN, Keyword::KEY]) {
|
||||
let name = self.parse_identifier()?;
|
||||
AlterTableOperation::DropForeignKey { name }
|
||||
} else if self.parse_keyword(Keyword::INDEX) {
|
||||
let name = self.parse_identifier()?;
|
||||
AlterTableOperation::DropIndex { name }
|
||||
} else if self.parse_keyword(Keyword::PROJECTION)
|
||||
&& dialect_of!(self is ClickHouseDialect|GenericDialect)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue