提交 9dce865d authored 作者: Timofey Kuznetsov's avatar Timofey Kuznetsov

add Support for MySQL: DROP INDEX index_name ON tbl_name

上级 d604dce4
......@@ -1625,6 +1625,10 @@ public class Parser {
command.setIndexName(indexName);
ifExists = readIfExists(ifExists);
command.setIfExists(ifExists);
//Support for MySQL: DROP INDEX index_name ON tbl_name
if(readIf("ON")) {
readIdentifierWithSchema();
}
return command;
} else if (readIf("USER")) {
boolean ifExists = readIfExists(false);
......
......@@ -398,6 +398,7 @@ public class TestCompatibility extends TestBase {
// check the MySQL index dropping syntax
stat.execute("ALTER TABLE TEST_COMMENT_ENGINE ADD CONSTRAINT CommentUnique UNIQUE (SOME_ITEM_ID)");
stat.execute("ALTER TABLE TEST_COMMENT_ENGINE DROP INDEX CommentUnique");
stat.execute("DROP INDEX SOME_ITEM_ID ON TEST_COMMENT_ENGINE");
conn.close();
conn = getConnection("compatibility");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论