22#include <drizzled/function/func.h>
23#include <drizzled/function/num_op.h>
28class Item_func_mod :
public Item_num_op
31 Item_func_mod(
Item *a,
Item *b) :Item_num_op(a,b) {}
35 const char *func_name()
const {
return "%"; }
36 void result_precision();
37 void fix_length_and_dec();
double real_op()
Performs the operation that this functions implements when the result type is REAL.
type::Decimal * decimal_op(type::Decimal *)
Performs the operation that this functions implements when the result type is DECIMAL.
int64_t int_op()
Performs the operation that this functions implements when the result type is INT.
TODO: Rename this file - func.h is stupid.