From abf4fbe82f0d9bcee082f9c5c9b4a8dce4d3e6d2 Mon Sep 17 00:00:00 2001 From: Yuriy Chernyshov Date: Mon, 8 Nov 2021 14:18:27 +0300 Subject: [PATCH] Fix typo in USE_MYSQL check --- src/Interpreters/InterpreterExternalDDLQuery.cpp | 4 ++-- src/Parsers/ParserExternalDDLQuery.cpp | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Interpreters/InterpreterExternalDDLQuery.cpp b/src/Interpreters/InterpreterExternalDDLQuery.cpp index ac3f18f1741..adceb1fe419 100644 --- a/src/Interpreters/InterpreterExternalDDLQuery.cpp +++ b/src/Interpreters/InterpreterExternalDDLQuery.cpp @@ -9,7 +9,7 @@ #include #include -#ifdef USE_MYSQL +#if USE_MYSQL # include # include # include @@ -38,7 +38,7 @@ BlockIO InterpreterExternalDDLQuery::execute() if (external_ddl_query.from->name == "MySQL") { -#ifdef USE_MYSQL +#if USE_MYSQL const ASTs & arguments = external_ddl_query.from->arguments->children; if (arguments.size() != 2 || !arguments[0]->as() || !arguments[1]->as()) diff --git a/src/Parsers/ParserExternalDDLQuery.cpp b/src/Parsers/ParserExternalDDLQuery.cpp index c64c50cd99f..9a87de9c2b1 100644 --- a/src/Parsers/ParserExternalDDLQuery.cpp +++ b/src/Parsers/ParserExternalDDLQuery.cpp @@ -7,7 +7,7 @@ #include #include -#ifdef USE_MYSQL +#if USE_MYSQL # include # include #endif @@ -15,7 +15,7 @@ namespace DB { -#ifdef USE_MYSQL +#if USE_MYSQL namespace ErrorCodes { extern const int MYSQL_SYNTAX_ERROR; @@ -41,7 +41,7 @@ bool ParserExternalDDLQuery::parseImpl(IParser::Pos & pos, ASTPtr & node, Expect bool res = false; if (external_ddl_query->from->name == "MySQL") { -#ifdef USE_MYSQL +#if USE_MYSQL ParserDropQuery p_drop_query; ParserRenameQuery p_rename_query; MySQLParser::ParserAlterQuery p_alter_query;