mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
Fix ASTAsterisk::clone()
This commit is contained in:
parent
a764628673
commit
f9dac6d4cf
@ -8,6 +8,7 @@ namespace DB
|
|||||||
ASTPtr ASTAsterisk::clone() const
|
ASTPtr ASTAsterisk::clone() const
|
||||||
{
|
{
|
||||||
auto clone = std::make_shared<ASTAsterisk>(*this);
|
auto clone = std::make_shared<ASTAsterisk>(*this);
|
||||||
|
clone->children.clear();
|
||||||
|
|
||||||
if (expression) { clone->expression = expression->clone(); clone->children.push_back(clone->expression); }
|
if (expression) { clone->expression = expression->clone(); clone->children.push_back(clone->expression); }
|
||||||
if (transformers) { clone->transformers = transformers->clone(); clone->children.push_back(clone->transformers); }
|
if (transformers) { clone->transformers = transformers->clone(); clone->children.push_back(clone->transformers); }
|
||||||
|
Loading…
Reference in New Issue
Block a user