~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/string_functions/format.cc

  • Committer: Andrew Hutchings
  • Date: 2011-02-07 17:20:59 UTC
  • mfrom: (2148 staging)
  • mto: (2148.2.3 build)
  • mto: This revision was merged to the branch mainline in revision 2149.
  • Revision ID: andrew@linuxjedi.co.uk-20110207172059-dyeahrgzrlincoe3
Merge with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
80
80
    if ((null_value=args[0]->null_value))
81
81
      return 0;
82
82
    class_decimal_round(E_DEC_FATAL_ERROR, res, dec, false, &rnd_dec);
83
 
    class_decimal2string(E_DEC_FATAL_ERROR, &rnd_dec, 0, 0, 0, str);
 
83
    class_decimal2string(&rnd_dec, 0, str);
84
84
    str_length= str->length();
85
85
    if (rnd_dec.sign())
86
86
      str_length--;