22#include <drizzled/function/func.h>
27class Item_func_numhybrid:
public Item_func
30 Item_result hybrid_type;
32 Item_func_numhybrid(): Item_func(), hybrid_type(REAL_RESULT)
34 Item_func_numhybrid(
Item *a) :Item_func(a), hybrid_type(REAL_RESULT)
37 :Item_func(a,b), hybrid_type(REAL_RESULT)
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;
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.
type::Decimal * val_decimal(type::Decimal *)
virtual double real_op()=0
Performs the operation that this functions implements when the result type is REAL.
String * val_str(String *str)
virtual type::Decimal * decimal_op(type::Decimal *)=0
Performs the operation that this functions implements when the result type is DECIMAL.
virtual void update_null_value()
TODO: Rename this file - func.h is stupid.