27class Item_func_weekday :
public Item_func
31 Item_func_weekday(
Item *a,
bool type_arg)
32 :Item_func(a), odbc_type(type_arg) {}
38 str->set(
val_int(), &my_charset_bin);
41 const char *func_name()
const
43 return (odbc_type ?
"dayofweek" :
"weekday");
45 enum Item_result result_type ()
const {
return INT_RESULT; }
46 void fix_length_and_dec()
48 collation.set(&my_charset_bin);
50 max_length=1*MY_CHARSET_BIN_MB_MAXLEN;