22 #include <drizzled/function/time/last_day.h>
23 #include <drizzled/error.h>
51 Item_result arg0_result_type= args[0]->result_type();
53 switch (arg0_result_type)
67 char buff[DRIZZLE_MAX_LENGTH_DATETIME_AS_STRING];
68 String tmp(buff,
sizeof(buff), &my_charset_utf8_bin);
86 if (! temporal.
from_string(tmp.c_ptr(), tmp.length()))
92 my_error(ER_INVALID_DATETIME_VALUE, MYF(0), tmp.c_ptr());
108 char buff[DRIZZLE_MAX_LENGTH_DATETIME_AS_STRING];
109 String tmp(buff,
sizeof(buff), &my_charset_utf8_bin);
129 my_error(ER_INVALID_DATETIME_VALUE, MYF(0), tmp.c_ptr());
bool from_string(const char *from, size_t from_len)
uint32_t days_in_gregorian_year_month(uint32_t year, uint32_t month)
virtual int64_t val_int()=0
TODO: Rename this file - func.h is stupid.
bool get_temporal(Date &temporal)
void set_days(const uint32_t day)
bool from_int64_t(const int64_t from, bool convert)
virtual String * val_str(String *str)=0