~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.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:
177
177
    return NULL;
178
178
 
179
179
  end_ptr= (char*) res->ptr()+ res->length();
180
 
  if (str2_class_decimal(E_DEC_FATAL_ERROR & ~E_DEC_BAD_NUM,
 
180
  if (decimal_value->store(E_DEC_FATAL_ERROR & ~E_DEC_BAD_NUM,
181
181
                     res->ptr(), 
182
182
                     res->length(), 
183
 
                     res->charset(),
184
 
                     decimal_value) & E_DEC_BAD_NUM)
 
183
                     res->charset()) & E_DEC_BAD_NUM)
185
184
  {
186
185
    push_warning_printf(current_session, 
187
186
                        DRIZZLE_ERROR::WARN_LEVEL_WARN,