diff --git a/dbms/src/Functions/FunctionsMath.cpp b/dbms/src/Functions/FunctionsMath.cpp index 49036dbe247..eb549e425a2 100644 --- a/dbms/src/Functions/FunctionsMath.cpp +++ b/dbms/src/Functions/FunctionsMath.cpp @@ -11,26 +11,28 @@ const double PiImpl::value = 3.1415926535897932384626433832795028841971693; void registerFunctionsMath(FunctionFactory & factory) { factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); factory.registerFunction(); - factory.registerFunction(); + factory.registerFunction(FunctionFactory::CaseInsensitive); factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); factory.registerFunction(); factory.registerFunction(); factory.registerFunction(); factory.registerFunction(); factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); - factory.registerFunction(); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + factory.registerFunction(FunctionFactory::CaseInsensitive); + + factory.registerAlias("power", "pow", FunctionFactory::CaseInsensitive); } } diff --git a/dbms/tests/queries/0_stateless/00756_power_alias.reference b/dbms/tests/queries/0_stateless/00756_power_alias.reference new file mode 100644 index 00000000000..dcc7e7cf0a2 --- /dev/null +++ b/dbms/tests/queries/0_stateless/00756_power_alias.reference @@ -0,0 +1 @@ +9 9 9 9 diff --git a/dbms/tests/queries/0_stateless/00756_power_alias.sql b/dbms/tests/queries/0_stateless/00756_power_alias.sql new file mode 100644 index 00000000000..e8f543ffb3a --- /dev/null +++ b/dbms/tests/queries/0_stateless/00756_power_alias.sql @@ -0,0 +1 @@ +SELECT pow(3, 2), POW(3, 2), power(3, 2), POWER(3, 2);