ClickHouse/src/Functions/toLastDayOfMonth.cpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

20 lines
483 B
C++
Raw Normal View History

2022-02-07 20:38:36 +00:00
#include <Functions/FunctionFactory.h>
#include <Functions/DateTimeTransforms.h>
#include <Functions/FunctionDateOrDateTimeToDateOrDate32.h>
2022-02-07 20:38:36 +00:00
namespace DB
{
using FunctionToLastDayOfMonth = FunctionDateOrDateTimeToDateOrDate32<ToLastDayOfMonthImpl>;
2022-02-07 20:38:36 +00:00
REGISTER_FUNCTION(ToLastDayOfMonth)
2022-02-07 20:38:36 +00:00
{
factory.registerFunction<FunctionToLastDayOfMonth>();
2022-03-10 19:30:46 +00:00
/// MySQL compatibility alias.
factory.registerAlias("LAST_DAY", "toLastDayOfMonth", FunctionFactory::CaseInsensitive);
2022-02-07 20:38:36 +00:00
}
}