22 #include <drizzled/function/func.h>
30 Item_result hybrid_type;
40 :
Item_func(list), hybrid_type(REAL_RESULT)
43 enum Item_result result_type ()
const {
return hybrid_type; }
44 void fix_length_and_dec();
45 void fix_num_length_and_dec();
46 virtual void find_num_type()= 0;
59 virtual int64_t
int_op()= 0;
virtual void update_null_value()
String * val_str(String *str)
type::Decimal * val_decimal(type::Decimal *)
virtual double real_op()=0
Performs the operation that this functions implements when the result type is REAL.
virtual type::Decimal * decimal_op(type::Decimal *)=0
Performs the operation that this functions implements when the result type is DECIMAL.
virtual String * str_op(String *)=0
Performs the operation that this functions implements when the result type is a string type...
virtual int64_t int_op()=0
Performs the operation that this functions implements when the result type is INT.