22#include <drizzled/function/func.h>
23#include <drizzled/function/num_op.h>
28class Item_func_div :
public Item_num_op
32 uint32_t prec_increment;
33 Item_func_div(
Session *arg,
Item *a,
Item *b) :Item_num_op(a,b), session(arg) {}
34 int64_t
int_op() { assert(0);
return 0; }
37 const char *func_name()
const {
return "/"; }
38 void fix_length_and_dec();
39 void result_precision();
double real_op()
Performs the operation that this functions implements when the result type is REAL.
int64_t int_op()
Performs the operation that this functions implements when the result type is INT.
type::Decimal * decimal_op(type::Decimal *)
Performs the operation that this functions implements when the result type is DECIMAL.
TODO: Rename this file - func.h is stupid.