Add toQuarter MySQL compatibility alias

This commit is contained in:
dankondr 2021-01-25 16:24:06 +03:00
parent f49c8779a8
commit 8ca52f9894
3 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@ using FunctionToQuarter = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToQua
void registerFunctionToQuarter(FunctionFactory & factory)
{
factory.registerFunction<FunctionToQuarter>();
/// MysQL compatibility alias.
factory.registerFunction<FunctionToQuarter>("QUARTER", FunctionFactory::CaseInsensitive);
}
}

View File

@ -0,0 +1 @@
SELECT QUARTER(toDateTime('2016-06-15 23:00:00'));