40907 Parameterized views as table functions

Implementation
* Fix for clang-today build fails - updated to use const reference in ASTSelectQuery.cpp & ASTSelectWithUnionQuery.cpp
This commit is contained in:
Smita Kulkarni 2022-09-26 13:08:54 +02:00 committed by SmitaRKulkarni
parent 21de85d67c
commit 8b3c4ac504
2 changed files with 2 additions and 2 deletions

View File

@ -491,7 +491,7 @@ bool ASTSelectQuery::hasQueryParameters() const
if (ast->as<ASTQueryParameter>())
return true;
for (auto child : ast->children)
for (const auto & child : ast->children)
queue.push(child);
}
return false;

View File

@ -104,7 +104,7 @@ bool ASTSelectWithUnionQuery::hasQueryParameters() const
return true;
}
for (auto child : current->children)
for (const auto & child : current->children)
queue.push(child);
}
return false;