27class Item_date_add_interval :
public Item_date_func
30 enum_field_types cached_field_type;
33 const interval_type int_type;
34 const bool date_sub_interval;
35 Item_date_add_interval(
Item *a,
Item *b,interval_type type_arg,
bool neg_arg)
36 :Item_date_func(a,b),int_type(type_arg), date_sub_interval(neg_arg) {}
38 const char *func_name()
const {
return "date_add_interval"; }
39 void fix_length_and_dec();
40 enum_field_types field_type()
const {
return cached_field_type; }
43 bool eq(
const Item *item,
bool binary_cmp)
const;