Add toDayOfWeek MySQL compatibility alias

This commit is contained in:
dankondr 2021-01-21 23:46:00 +03:00
parent 3025a09f7e
commit 27bf42b67f

View File

@ -12,6 +12,9 @@ using FunctionToDayOfWeek = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToD
void registerFunctionToDayOfWeek(FunctionFactory & factory)
{
factory.registerFunction<FunctionToDayOfWeek>();
/// MysQL compatibility alias.
factory.registerFunction<FunctionToDayOfWeek>("DAYOFWEEK", FunctionFactory::CaseInsensitive);
}
}