Add lowercase support.

This commit is contained in:
Yarik Briukhovetskyi 2024-12-03 20:53:39 +01:00 committed by GitHub
parent d6480b846c
commit db15390ab4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -651,7 +651,7 @@ QueryTreeNodePtr QueryTreeBuilder::buildExpression(const ASTPtr & expression, co
const auto & group_concat_aliases = GroupConcatImpl<false>::getNameAndAliases(); const auto & group_concat_aliases = GroupConcatImpl<false>::getNameAndAliases();
if (!function->name.empty() && std::any_of( if (!function->name.empty() && std::any_of(
group_concat_aliases.begin(), group_concat_aliases.end(), group_concat_aliases.begin(), group_concat_aliases.end(),
[&](const std::string &s) { return s == function->name; }) [&](const std::string &s) { return s == Poco::toLower(function->name); })
&& function->arguments && function->arguments->children.size() == 2) && function->arguments && function->arguments->children.size() == 2)
{ {
result = setFirstArgumentAsParameter(function, context); result = setFirstArgumentAsParameter(function, context);