mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Add locate -> position alias #3713
This commit is contained in:
parent
4ebbe3502d
commit
ed04453122
@ -1088,6 +1088,7 @@ void registerFunctionsStringSearch(FunctionFactory & factory)
|
||||
factory.registerFunction<FunctionLike>();
|
||||
factory.registerFunction<FunctionNotLike>();
|
||||
factory.registerFunction<FunctionExtract>();
|
||||
factory.registerAlias("locate", NamePosition::name, FunctionFactory::CaseInsensitive);
|
||||
factory.registerAlias("replace", NameReplaceAll::name, FunctionFactory::CaseInsensitive);
|
||||
}
|
||||
}
|
||||
|
@ -3,3 +3,4 @@ FOO
|
||||
foo
|
||||
FOO
|
||||
baz
|
||||
2
|
||||
|
@ -5,3 +5,4 @@ select ucase('foo');
|
||||
select LOWER('Foo');
|
||||
select UPPER('Foo');
|
||||
select REPLACE('bar', 'r', 'z');
|
||||
select Locate('foo', 'o');
|
||||
|
Loading…
Reference in New Issue
Block a user