~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/string_functions/format.cc

  • Committer: Brian Aker
  • Date: 2011-01-17 04:15:23 UTC
  • mto: (2088.1.3 merge)
  • mto: This revision was merged to the branch mainline in revision 2089.
  • Revision ID: brian@gir-3-20110117041523-o9ex94kfz1a6iqyw
Modify TableIdentifier to fit with the rest of the identifiers.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
  if (args[0]->result_type() == DECIMAL_RESULT ||
76
76
      args[0]->result_type() == INT_RESULT)
77
77
  {
78
 
    my_decimal dec_val, rnd_dec, *res;
 
78
    type::Decimal dec_val, rnd_dec, *res;
79
79
    res= args[0]->val_decimal(&dec_val);
80
80
    if ((null_value=args[0]->null_value))
81
81
      return 0;
82
 
    my_decimal_round(E_DEC_FATAL_ERROR, res, dec, false, &rnd_dec);
83
 
    my_decimal2string(E_DEC_FATAL_ERROR, &rnd_dec, 0, 0, 0, str);
 
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);
84
84
    str_length= str->length();
85
85
    if (rnd_dec.sign())
86
86
      str_length--;