diff --git a/programs/copier/Internals.cpp b/programs/copier/Internals.cpp index 8193a8c9de8..24b5d616af4 100644 --- a/programs/copier/Internals.cpp +++ b/programs/copier/Internals.cpp @@ -171,10 +171,10 @@ ASTPtr extractOrderBy(const ASTPtr & storage_ast) /// Wraps only identifiers with backticks. std::string wrapIdentifiersWithBackticks(const ASTPtr & root) { - if (auto identifier = std::dynamic_pointer_cast(root)) + if (auto identifier = std::dynamic_pointer_cast(root)) return backQuote(identifier->name); - if (auto function = std::dynamic_pointer_cast(root)) + if (auto function = std::dynamic_pointer_cast(root)) return function->name + '(' + wrapIdentifiersWithBackticks(function->arguments) + ')'; if (auto expression_list = std::dynamic_pointer_cast(root))