mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 05:22:17 +00:00
22 lines
531 B
C++
22 lines
531 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/DateTimeTransforms.h>
|
|
#include <Functions/FunctionDateOrDateTimeToSomething.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionToLastDayOfMonth = FunctionDateOrDateTimeToSomething<DataTypeDate, ToLastDayOfMonthImpl>;
|
|
|
|
void registerFunctionToLastDayOfMonth(FunctionFactory & factory)
|
|
{
|
|
factory.registerFunction<FunctionToLastDayOfMonth>();
|
|
|
|
/// MySQL compatibility alias.
|
|
factory.registerFunction<FunctionToLastDayOfMonth>("LAST_DAY", FunctionFactory::CaseInsensitive);
|
|
}
|
|
|
|
}
|
|
|
|
|