~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/num.cc

  • Committer: Brian Aker
  • Date: 2009-07-11 05:59:19 UTC
  • mfrom: (1089.1.9 merge)
  • Revision ID: brian@gaz-20090711055919-m4px3crrdgta5lie
Collection of patches from new-cleanup (includes asserts for field in debug)

Show diffs side-by-side

added added

removed removed

Lines of Context:
176
176
my_decimal* Field_num::val_decimal(my_decimal *decimal_value)
177
177
{
178
178
  assert(result_type() == INT_RESULT);
 
179
 
179
180
  int64_t nr= val_int();
180
181
  int2my_decimal(E_DEC_FATAL_ERROR, nr, false, decimal_value);
181
182
  return decimal_value;