Add toSecond MySQL compatibility alias

This commit is contained in:
dankondr 2021-01-25 16:26:38 +03:00
parent 8ca52f9894
commit 23e86a57d8
3 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,8 @@ using FunctionToSecond = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToSeco
void registerFunctionToSecond(FunctionFactory & factory)
{
factory.registerFunction<FunctionToSecond>();
/// MysQL compatibility alias.
factory.registerFunction<FunctionToSecond>("SECOND", FunctionFactory::CaseInsensitive);
}
}

View File

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