~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/decimal.cc

  • Committer: Brian Aker
  • Date: 2010-12-27 19:16:17 UTC
  • mto: This revision was merged to the branch mainline in revision 2036.
  • Revision ID: brian@tangent.org-20101227191617-b1jesi0g2okc06nj
Improvement for decimal in encapsulation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
149
149
 
150
150
  ASSERT_COLUMN_MARKED_FOR_WRITE;
151
151
 
152
 
  if ((err= str2_class_decimal(E_DEC_FATAL_ERROR &
 
152
  if ((err= decimal_value.store(E_DEC_FATAL_ERROR &
153
153
                           ~(E_DEC_OVERFLOW | E_DEC_BAD_NUM),
154
 
                           from, length, charset_arg,
155
 
                           &decimal_value)) &&
 
154
                           from, length, charset_arg)) &&
156
155
      getTable()->in_use->abort_on_warning)
157
156
  {
158
157
    /* Because "from" is not NUL-terminated and we use %s in the ER() */