Make if function name case-insensive #3704

This commit is contained in:
Ivan Blinkov 2018-12-06 17:40:32 +03:00
parent afcd6f9f09
commit 21c76a3d63
3 changed files with 3 additions and 1 deletions

View File

@ -936,7 +936,7 @@ public:
void registerFunctionIf(FunctionFactory & factory) void registerFunctionIf(FunctionFactory & factory)
{ {
factory.registerFunction<FunctionIf>(); factory.registerFunction<FunctionIf>(FunctionFactory::CaseInsensitive);
} }
} }

View File

@ -7,3 +7,4 @@ baz
fo fo
oo oo
o o
1

View File

@ -9,3 +9,4 @@ select Locate('foo', 'o');
select SUBSTRING('foo', 1, 2); select SUBSTRING('foo', 1, 2);
select Substr('foo', 2); select Substr('foo', 2);
select mid('foo', 3); select mid('foo', 3);
select IF(3>2, 1, 0);