mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-29 11:02:08 +00:00
Fixed strange code #3145
This commit is contained in:
parent
b9ecc4b819
commit
5e50e6bfef
@ -164,10 +164,10 @@ void QueryNormalizer::performImpl(ASTPtr & ast, MapOfASTs & finished_asts, SetOf
|
||||
ASTIdentifier * identifier = typeid_cast<ASTIdentifier *>(qualified_asterisk->children[0].get());
|
||||
size_t num_components = identifier->children.size();
|
||||
|
||||
for (const auto table_name_and_columns_name : table_names_and_columns_name)
|
||||
for (const auto & table_name_and_columns_name : table_names_and_columns_name)
|
||||
{
|
||||
const auto table_name = table_name_and_columns_name.first;
|
||||
const auto table_all_columns_name = table_name_and_columns_name.second;
|
||||
const auto & table_name = table_name_and_columns_name.first;
|
||||
const auto & table_all_columns_name = table_name_and_columns_name.second;
|
||||
|
||||
if ((num_components == 2
|
||||
&& !table_name.database.empty()
|
||||
|
Loading…
Reference in New Issue
Block a user