ClickHouse/src/Functions/toSecond.cpp

21 lines
489 B
C++
Raw Normal View History

#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToSomething.h>
#include <DataTypes/DataTypesNumber.h>
namespace DB
{
using FunctionToSecond = FunctionDateOrDateTimeToSomething<DataTypeUInt8, ToSecondImpl>;
REGISTER_FUNCTION(ToSecond)
{
factory.registerFunction<FunctionToSecond>();
2021-01-25 13:26:38 +00:00
/// MysQL compatibility alias.
factory.registerAlias("SECOND", "toSecond", FunctionFactory::CaseInsensitive);
}
}