mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-28 02:21:59 +00:00
Add toMinute MySQL compatibility alias
This commit is contained in:
parent
23e86a57d8
commit
fb268ec339
@ -12,6 +12,8 @@ using FunctionToMinute = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToMinu
|
|||||||
void registerFunctionToMinute(FunctionFactory & factory)
|
void registerFunctionToMinute(FunctionFactory & factory)
|
||||||
{
|
{
|
||||||
factory.registerFunction<FunctionToMinute>();
|
factory.registerFunction<FunctionToMinute>();
|
||||||
|
/// MysQL compatibility alias.
|
||||||
|
factory.registerFunction<FunctionToMinute>("MINUTE", FunctionFactory::CaseInsensitive);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1 @@
|
|||||||
|
0
|
@ -0,0 +1 @@
|
|||||||
|
SELECT MINUTE(toDateTime('2016-06-15 23:00:00'));
|
Loading…
Reference in New Issue
Block a user