diff --git a/syncer/ast_test.go b/syncer/ast_test.go index 1428b56162..99bba93fa0 100644 --- a/syncer/ast_test.go +++ b/syncer/ast_test.go @@ -83,8 +83,11 @@ func (s *testSyncerSuite) testFailedCases(c *C) { // cases parse failed and should be supported in the near future // {"ALTER TABLE bar ENABLE KEYS, DISABLE KEYS", []string{"ALTER TABLE `bar` ENABLE KEYS", "ALTER TABLE `bar` DISABLE KEYS"}, false}, - {"alter table bar ORDER BY id1, id2", []string{"alter table bar ORDER BY id1, id2"}, true}, // tidb not support ORDER BY. - {"alter table bar add index (`name`), add FOREIGN KEY (product_category, product_id) REFERENCES product(category, id) ON UPDATE CASCADE ON DELETE RESTRICT", []string{"alter table bar add index (`name`), add FOREIGN KEY (product_category, product_id) REFERENCES product(category, id) ON UPDATE CASCADE ON DELETE RESTRICT"}, true}, // tidb not support ON UPDATE CASCADE ON DELETE RESTRICT + + // tidb not support ORDER BY. + {"alter table bar ORDER BY id1, id2", []string{"alter table bar ORDER BY id1, id2"}, true}, + // tidb not support ON UPDATE CASCADE ON DELETE RESTRICT + {"alter table bar add index (`name`), add FOREIGN KEY (product_category, product_id) REFERENCES product(category, id) ON UPDATE CASCADE ON DELETE RESTRICT", []string{"alter table bar add index (`name`), add FOREIGN KEY (product_category, product_id) REFERENCES product(category, id) ON UPDATE CASCADE ON DELETE RESTRICT"}, true}, } s.run(c, tests)