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)
{
factory.registerFunction<FunctionIf>();
factory.registerFunction<FunctionIf>(FunctionFactory::CaseInsensitive);
}
}

View File

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