~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/func.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:
482
482
    return make_string_field(table);
483
483
 
484
484
  case DECIMAL_RESULT:
485
 
    field= new Field_decimal(my_decimal_precision_to_length(decimal_precision(),
 
485
    field= new Field_decimal(class_decimal_precision_to_length(decimal_precision(),
486
486
                                                            decimals,
487
487
                                                            unsigned_flag),
488
488
                             maybe_null,
580
580
    set_if_smaller(unsigned_flag, args[i]->unsigned_flag);
581
581
  }
582
582
  int precision= min(max_int_part + decimals, DECIMAL_MAX_PRECISION);
583
 
  max_length= my_decimal_precision_to_length(precision, decimals,
 
583
  max_length= class_decimal_precision_to_length(precision, decimals,
584
584
                                             unsigned_flag);
585
585
}
586
586