mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Update Macros.cpp
This commit is contained in:
parent
918dbc2902
commit
c783a69d6b
@ -69,13 +69,14 @@ String Macros::expand(const String & s, size_t level) const
|
||||
return expand(res, level + 1);
|
||||
}
|
||||
|
||||
Names Macros::expand(const Names & s, size_t level) const
|
||||
Names Macros::expand(const Names & source_names, size_t level) const
|
||||
{
|
||||
Names names;
|
||||
Names result_names;
|
||||
result_names.reserve(source_names.size());
|
||||
|
||||
for (const String name : s)
|
||||
names.push_back(expand(name, level));
|
||||
for (const String & name : source_names)
|
||||
result_names.push_back(expand(name, level));
|
||||
|
||||
return names;
|
||||
return result_names;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user