mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 23:21:59 +00:00
Add toDayOfWeek MySQL compatibility alias
This commit is contained in:
parent
3025a09f7e
commit
27bf42b67f
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user