make aliases case insensitive

This commit is contained in:
taiyang-li 2022-02-06 09:38:05 +08:00
parent b9f8fe922d
commit 5fc2e46dd0
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ using FunctionMatch = FunctionsStringSearch<MatchImpl<NameMatch, false>>;
void registerFunctionMatch(FunctionFactory & factory)
{
factory.registerFunction<FunctionMatch>();
factory.registerAlias("REGEXP_MATCHES", NameMatch::name);
factory.registerAlias("REGEXP_MATCHES", NameMatch::name, FunctionFactory::CaseInsensitive);
}
}

View File

@ -21,7 +21,7 @@ void registerFunctionReplaceAll(FunctionFactory & factory)
{
factory.registerFunction<FunctionReplaceAll>();
factory.registerAlias("replace", NameReplaceAll::name, FunctionFactory::CaseInsensitive);
factory.registerAlias("REGEXP_REPLACE", NameReplaceAll::name);
factory.registerAlias("REGEXP_REPLACE", NameReplaceAll::name, FunctionFactory::CaseInsensitive);
}
}