mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
Fix missing clone in replace column transformer
This commit is contained in:
parent
87b3984d17
commit
da2bb4e0d3
@ -110,7 +110,7 @@ void ASTColumnsReplaceTransformer::replaceChildren(ASTPtr & node, const ASTPtr &
|
||||
if (const auto * id = child->as<ASTIdentifier>())
|
||||
{
|
||||
if (id->shortName() == name)
|
||||
child = replacement;
|
||||
child = replacement->clone();
|
||||
}
|
||||
else
|
||||
replaceChildren(child, replacement, name);
|
||||
|
Loading…
Reference in New Issue
Block a user