Add replace -> replaceAll alias #3713

This commit is contained in:
Ivan Blinkov 2018-12-06 16:23:45 +03:00
parent 50314e3e91
commit 4ebbe3502d
3 changed files with 3 additions and 0 deletions

View File

@ -1088,5 +1088,6 @@ void registerFunctionsStringSearch(FunctionFactory & factory)
factory.registerFunction<FunctionLike>();
factory.registerFunction<FunctionNotLike>();
factory.registerFunction<FunctionExtract>();
factory.registerAlias("replace", NameReplaceAll::name, FunctionFactory::CaseInsensitive);
}
}

View File

@ -2,3 +2,4 @@ foo
FOO
foo
FOO
baz

View File

@ -4,3 +4,4 @@ select lcase('FOO');
select ucase('foo');
select LOWER('Foo');
select UPPER('Foo');
select REPLACE('bar', 'r', 'z');