From 3ec80e92ede63427aadaf0dddbe461689cc8b4da Mon Sep 17 00:00:00 2001 From: zhang2014 Date: Mon, 13 Jul 2020 02:25:53 +0800 Subject: [PATCH] ISSUES-4006 add check test case --- src/Parsers/MySQL/tests/gtest_alter_command_parser.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Parsers/MySQL/tests/gtest_alter_command_parser.cpp b/src/Parsers/MySQL/tests/gtest_alter_command_parser.cpp index 81aed23372b..b9a0d8928e6 100644 --- a/src/Parsers/MySQL/tests/gtest_alter_command_parser.cpp +++ b/src/Parsers/MySQL/tests/gtest_alter_command_parser.cpp @@ -253,6 +253,7 @@ TEST(ParserAlterCommand, AlterOptionsCommand) EXPECT_EQ(ast->as()->properties->as()->changes["checksum"]->as()->value.safeGet(), 1); EXPECT_EQ(ast->as()->properties->as()->changes["auto_increment"]->as()->value.safeGet(), 1); + EXPECT_THROW(tryParserQuery(alter_p, "FORCE ALGORITHM DEFAULT"), Exception); EXPECT_THROW(tryParserQuery(alter_p, "ALGORITHM DEFAULT AUTO_INCREMENT 1"), Exception); }