Add toMinute MySQL compatibility alias

This commit is contained in:
dankondr 2021-01-25 16:35:58 +03:00
parent 23e86a57d8
commit fb268ec339
3 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@ using FunctionToMinute = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToMinu
void registerFunctionToMinute(FunctionFactory & factory)
{
factory.registerFunction<FunctionToMinute>();
/// MysQL compatibility alias.
factory.registerFunction<FunctionToMinute>("MINUTE", FunctionFactory::CaseInsensitive);
}
}

View File

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