Skip to content

Commit 502ea78

Browse files
committed
fixing broken unit tests
1 parent 0a2082f commit 502ea78

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/ast/ddl.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -189,8 +189,6 @@ pub enum AlterTableOperation {
189189
},
190190
/// `DROP INDEX <index_name>`
191191
///
192-
/// Note: this is a [MySQL]-specific operation.
193-
///
194192
/// [MySQL]: https://dev.mysql.com/doc/refman/8.4/en/alter-table.html
195193
DropIndex {
196194
name: Ident,

tests/sqlparser_common.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9132,9 +9132,7 @@ fn test_create_index_with_with_clause() {
91329132
#[test]
91339133
fn parse_drop_index() {
91349134
let sql = "DROP INDEX idx_a";
9135-
// MySql dialect doesn't support `DROP INDEX idx_a`,you need to specify a specific table, please refer:
9136-
// [MySql](https://dev.mysql.com/doc/refman/8.4/en/drop-index.html)
9137-
match all_dialects_except(|d| d.is::<MySqlDialect>()).verified_stmt(sql) {
9135+
match verified_stmt(sql) {
91389136
Statement::Drop {
91399137
names, object_type, ..
91409138
} => {

0 commit comments

Comments
 (0)