#include #include #include #include namespace DB { using FunctionToDayOfMonth = FunctionDateOrDateTimeToSomething; REGISTER_FUNCTION(ToDayOfMonth) { factory.registerFunction(); /// MySQL compatibility alias. factory.registerAlias("DAY", "toDayOfMonth", FunctionFactory::CaseInsensitive); factory.registerAlias("DAYOFMONTH", "toDayOfMonth", FunctionFactory::CaseInsensitive); } }