mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 19:02:04 +00:00
20 lines
483 B
C++
20 lines
483 B
C++
#include <Functions/FunctionFactory.h>
|
|
#include <Functions/DateTimeTransforms.h>
|
|
#include <Functions/FunctionDateOrDateTimeToDateOrDate32.h>
|
|
|
|
|
|
namespace DB
|
|
{
|
|
|
|
using FunctionToLastDayOfMonth = FunctionDateOrDateTimeToDateOrDate32<ToLastDayOfMonthImpl>;
|
|
|
|
REGISTER_FUNCTION(ToLastDayOfMonth)
|
|
{
|
|
factory.registerFunction<FunctionToLastDayOfMonth>();
|
|
|
|
/// MySQL compatibility alias.
|
|
factory.registerAlias("LAST_DAY", "toLastDayOfMonth", FunctionFactory::CaseInsensitive);
|
|
}
|
|
|
|
}
|