diff --git a/utils/db-generator/query_db_generator.cpp b/utils/db-generator/query_db_generator.cpp index ccef60e7ef2..88f46325c72 100644 --- a/utils/db-generator/query_db_generator.cpp +++ b/utils/db-generator/query_db_generator.cpp @@ -651,10 +651,9 @@ FuncRet inFunc(DB::ASTPtr ch, std::map & columns) { ColumnType type = type_cast(literal->value.getType()); - /// C++20 - auto routine = [&] (const T & arr_values) + auto routine = [&](const auto & arr_values) { - for (auto val : arr_values) + for (auto & val : arr_values) { type = type_cast(val.getType()); if (type == type::s || type == type::d || type == type::dt)