From 8b3c4ac50471d76bf0a7c3ae67b6bc70b288d63e Mon Sep 17 00:00:00 2001 From: Smita Kulkarni Date: Mon, 26 Sep 2022 13:08:54 +0200 Subject: [PATCH] 40907 Parameterized views as table functions Implementation * Fix for clang-today build fails - updated to use const reference in ASTSelectQuery.cpp & ASTSelectWithUnionQuery.cpp --- src/Parsers/ASTSelectQuery.cpp | 2 +- src/Parsers/ASTSelectWithUnionQuery.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Parsers/ASTSelectQuery.cpp b/src/Parsers/ASTSelectQuery.cpp index 3be3f6c5c9a..7537628b3a5 100644 --- a/src/Parsers/ASTSelectQuery.cpp +++ b/src/Parsers/ASTSelectQuery.cpp @@ -491,7 +491,7 @@ bool ASTSelectQuery::hasQueryParameters() const if (ast->as()) return true; - for (auto child : ast->children) + for (const auto & child : ast->children) queue.push(child); } return false; diff --git a/src/Parsers/ASTSelectWithUnionQuery.cpp b/src/Parsers/ASTSelectWithUnionQuery.cpp index c38e4e2c747..76fe9582615 100644 --- a/src/Parsers/ASTSelectWithUnionQuery.cpp +++ b/src/Parsers/ASTSelectWithUnionQuery.cpp @@ -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;