22 #include <drizzled/function/func.h>
23 #include <drizzled/function/num1.h>
41 const char *func_name()
const {
return "-"; }
42 enum Functype functype()
const {
return NEG_FUNC; }
43 void fix_length_and_dec();
44 void fix_num_length_and_dec();
45 uint32_t decimal_precision()
const {
return args[0]->decimal_precision(); }
TODO: Rename this file - func.h is stupid.
type::Decimal * decimal_op(type::Decimal *)
Performs the operation that this functions implements when the result type is DECIMAL.
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.