22 #include <drizzled/item/cache_decimal.h>
26 void Item_cache_decimal::store(Item *item)
28 type::Decimal *val= item->val_decimal_result(&decimal_value);
29 if (!(
null_value= item->null_value) && val != &decimal_value)
30 class_decimal2decimal(val, &decimal_value);
37 class_decimal2double(E_DEC_FATAL_ERROR, &decimal_value, &res);
45 decimal_value.val_int32(E_DEC_FATAL_ERROR, unsigned_flag, &res);
52 class_decimal_round(E_DEC_FATAL_ERROR, &decimal_value, decimals,
false, &decimal_value);
60 return &decimal_value;
type::Decimal * val_decimal(type::Decimal *)
String * val_str(String *)
int class_decimal2string(const type::Decimal *d, uint32_t fixed_dec, String *str)
Converting decimal to string.