mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +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<FunctionLike>();
|
||||||
factory.registerFunction<FunctionNotLike>();
|
factory.registerFunction<FunctionNotLike>();
|
||||||
factory.registerFunction<FunctionExtract>();
|
factory.registerFunction<FunctionExtract>();
|
||||||
|
factory.registerAlias("locate", NamePosition::name, FunctionFactory::CaseInsensitive);
|
||||||
factory.registerAlias("replace", NameReplaceAll::name, FunctionFactory::CaseInsensitive);
|
factory.registerAlias("replace", NameReplaceAll::name, FunctionFactory::CaseInsensitive);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -3,3 +3,4 @@ FOO
|
|||||||
foo
|
foo
|
||||||
FOO
|
FOO
|
||||||
baz
|
baz
|
||||||
|
2
|
||||||
|
@ -5,3 +5,4 @@ select ucase('foo');
|
|||||||
select LOWER('Foo');
|
select LOWER('Foo');
|
||||||
select UPPER('Foo');
|
select UPPER('Foo');
|
||||||
select REPLACE('bar', 'r', 'z');
|
select REPLACE('bar', 'r', 'z');
|
||||||
|
select Locate('foo', 'o');
|
||||||
|
Loading…
Reference in New Issue
Block a user