~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/varstring.cc

  • Committer: Monty Taylor
  • Date: 2010-12-27 19:41:48 UTC
  • mfrom: (2035 staging)
  • mto: This revision was merged to the branch mainline in revision 2038.
  • Revision ID: mordred@inaugust.com-20101227194148-nqd86au4o76pdltw
Merged trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
}
166
166
 
167
167
 
168
 
my_decimal *Field_varstring::val_decimal(my_decimal *decimal_value)
 
168
type::Decimal *Field_varstring::val_decimal(type::Decimal *decimal_value)
169
169
{
170
170
  uint32_t length;
171
171
 
173
173
 
174
174
  length= length_bytes == 1 ? (uint32_t) *ptr : uint2korr(ptr);
175
175
 
176
 
  str2my_decimal(E_DEC_FATAL_ERROR, (char*) ptr+length_bytes, length,
 
176
  str2_class_decimal(E_DEC_FATAL_ERROR, (char*) ptr+length_bytes, length,
177
177
                 charset(), decimal_value);
178
178
  return decimal_value;
179
179
}