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