mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Fix readability issues
This commit is contained in:
parent
78d2caee7e
commit
045c92e2b9
@ -341,7 +341,7 @@ InterpreterSelectQuery::InterpreterSelectQuery(
|
||||
{
|
||||
const auto & storage_values = static_cast<const StorageValues &>(*view_source);
|
||||
auto tmp_table_id = storage_values.getStorageID();
|
||||
for (auto & t : joined_tables.tablesWithColumns())
|
||||
for (const auto & t : joined_tables.tablesWithColumns())
|
||||
uses_view_source |= (t.table.database == tmp_table_id.database_name && t.table.table == tmp_table_id.table_name);
|
||||
}
|
||||
|
||||
|
@ -34,7 +34,7 @@ ASTPtr ASTSelectQuery::clone() const
|
||||
* Since the positions map uses <key, position> we can copy it as is and ensure the new children array is created / pushed
|
||||
* in the same order as the existing one */
|
||||
res->children.clear();
|
||||
for (auto & child : children)
|
||||
for (const auto & child : children)
|
||||
res->children.push_back(child->clone());
|
||||
|
||||
return res;
|
||||
|
Loading…
Reference in New Issue
Block a user