mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 18:42:26 +00:00
Update Internals.cpp
This commit is contained in:
parent
b45a4a2cd1
commit
dbb607573b
@ -171,10 +171,10 @@ ASTPtr extractOrderBy(const ASTPtr & storage_ast)
|
|||||||
/// Wraps only identifiers with backticks.
|
/// Wraps only identifiers with backticks.
|
||||||
std::string wrapIdentifiersWithBackticks(const ASTPtr & root)
|
std::string wrapIdentifiersWithBackticks(const ASTPtr & root)
|
||||||
{
|
{
|
||||||
if (auto identifier = std::dynamic_pointer_cast<ASTIdentifier>(root))
|
if (auto identifier = std::dynamic_pointer_cast<ASTIdentifier>(root))
|
||||||
return backQuote(identifier->name);
|
return backQuote(identifier->name);
|
||||||
|
|
||||||
if (auto function = std::dynamic_pointer_cast<ASTFunction>(root))
|
if (auto function = std::dynamic_pointer_cast<ASTFunction>(root))
|
||||||
return function->name + '(' + wrapIdentifiersWithBackticks(function->arguments) + ')';
|
return function->name + '(' + wrapIdentifiersWithBackticks(function->arguments) + ')';
|
||||||
|
|
||||||
if (auto expression_list = std::dynamic_pointer_cast<ASTExpressionList>(root))
|
if (auto expression_list = std::dynamic_pointer_cast<ASTExpressionList>(root))
|
||||||
|
Loading…
Reference in New Issue
Block a user