mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Add toQuarter MySQL compatibility alias
This commit is contained in:
parent
f49c8779a8
commit
8ca52f9894
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1 @@
|
||||
2
|
@ -0,0 +1 @@
|
||||
SELECT QUARTER(toDateTime('2016-06-15 23:00:00'));
|
Loading…
Reference in New Issue
Block a user