~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/real.cc

  • Committer: Monty Taylor
  • Date: 2010-12-26 01:32:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101226013211-c1tx52h7evovmijg
fixed dict and eval.

Show diffs side-by-side

added added

removed removed

Lines of Context:
129
129
}
130
130
 
131
131
 
132
 
int Field_real::store_decimal(const type::Decimal *dm)
 
132
int Field_real::store_decimal(const my_decimal *dm)
133
133
{
134
134
  double dbl;
135
 
  class_decimal2double(E_DEC_FATAL_ERROR, dm, &dbl);
 
135
  my_decimal2double(E_DEC_FATAL_ERROR, dm, &dbl);
136
136
  return store(dbl);
137
137
}
138
138
 
139
 
type::Decimal *Field_real::val_decimal(type::Decimal *decimal_value)
 
139
my_decimal *Field_real::val_decimal(my_decimal *decimal_value)
140
140
{
141
141
  ASSERT_COLUMN_MARKED_FOR_READ;
142
142
 
143
 
  double2_class_decimal(E_DEC_FATAL_ERROR, val_real(), decimal_value);
 
143
  double2my_decimal(E_DEC_FATAL_ERROR, val_real(), decimal_value);
144
144
  return decimal_value;
145
145
}
146
146