~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/min_max.cc

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
    }
60
60
  }
61
61
  else if ((cmp_type == DECIMAL_RESULT) || (cmp_type == INT_RESULT))
62
 
    max_length= my_decimal_precision_to_length(max_int_part+decimals, decimals,
 
62
    max_length= class_decimal_precision_to_length(max_int_part+decimals, decimals,
63
63
                                            unsigned_flag);
64
64
  cached_field_type= agg_field_type(args, arg_count);
65
65
}
276
276
    else
277
277
    {
278
278
      tmp= args[i]->val_decimal(&tmp_buf);      // Zero if NULL
279
 
      if (tmp && (my_decimal_cmp(tmp, res) * cmp_sign) < 0)
 
279
      if (tmp && (class_decimal_cmp(tmp, res) * cmp_sign) < 0)
280
280
      {
281
281
        if (tmp == &tmp_buf)
282
282
        {