skip MySQLCreateRewritten unit testsuite when enable_mysql is off

This commit is contained in:
Suzy Wang 2022-01-12 11:05:56 -08:00
parent bc03e5e10f
commit ad11f3f05d

View File

@ -13,7 +13,7 @@
#include <Common/tests/gtest_global_register.h>
#include <Poco/String.h>
#if USE_MYSQL
using namespace DB;
static inline ASTPtr tryRewrittenCreateQuery(const String & query, ContextPtr context)
@ -255,3 +255,4 @@ TEST(MySQLCreateRewritten, QueryWithEnum)
std::string(MATERIALIZEDMYSQL_TABLE_COLUMNS) +
") ENGINE = ReplacingMergeTree(_version) PARTITION BY intDiv(key, 4294967) ORDER BY tuple(key)");
}
#endif