~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/fdecimal.cc

  • Committer: Brian Aker
  • Date: 2008-07-28 00:57:12 UTC
  • Revision ID: brian@tangent.org-20080728005712-mkndotf2cvcbp0at
Remove completely ZEROFILL

Show diffs side-by-side

added added

removed removed

Lines of Context:
280
280
                                   String *val_ptr __attribute__((unused)))
281
281
{
282
282
  my_decimal decimal_value;
283
 
  uint fixed_precision= zerofill ? precision : 0;
 
283
  uint fixed_precision= decimal_precision ? precision : 0;
284
284
  my_decimal2string(E_DEC_FATAL_ERROR, val_decimal(&decimal_value),
285
285
                    fixed_precision, dec, '0', val_buffer);
286
286
  return val_buffer;
305
305
  CHARSET_INFO *cs= str.charset();
306
306
  str.length(cs->cset->snprintf(cs, (char*) str.ptr(), str.alloced_length(),
307
307
                                "decimal(%d,%d)", precision, (int)dec));
308
 
  add_zerofill_and_unsigned(str);
 
308
  add_unsigned(str);
309
309
}
310
310
 
311
311