mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
review fixes
This commit is contained in:
parent
ed5c6bff5e
commit
338c18ae3b
@ -200,14 +200,10 @@ static String getUniqueName(ActionsVisitor::Data & data, const String & prefix)
|
||||
auto & block = data.getSampleBlock();
|
||||
auto result = prefix;
|
||||
|
||||
if (block.has(result))
|
||||
while (block.has(result))
|
||||
{
|
||||
do
|
||||
{
|
||||
result = prefix + "_" + toString(data.next_unique_suffix);
|
||||
++data.next_unique_suffix;
|
||||
}
|
||||
while (block.has(result));
|
||||
result = prefix + "_" + toString(data.next_unique_suffix);
|
||||
++data.next_unique_suffix;
|
||||
}
|
||||
|
||||
return result;
|
||||
|
Loading…
Reference in New Issue
Block a user