~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.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:
143
143
      break;
144
144
    case DRIZZLE_TYPE_DECIMAL:
145
145
      key_length= pack_length=
146
 
        my_decimal_get_binary_size(my_decimal_length_to_precision(length,
 
146
        class_decimal_get_binary_size(class_decimal_length_to_precision(length,
147
147
                  decimals,
148
148
                  flags &
149
149
                  UNSIGNED_FLAG),
249
249
    case DRIZZLE_TYPE_NULL:
250
250
      break;
251
251
    case DRIZZLE_TYPE_DECIMAL:
252
 
      my_decimal_trim(&length, &decimals);
 
252
      class_decimal_trim(&length, &decimals);
253
253
      if (length > DECIMAL_MAX_PRECISION)
254
254
      {
255
255
        my_error(ER_TOO_BIG_PRECISION, MYF(0), length, fld_name,
261
261
        my_error(ER_M_BIGGER_THAN_D, MYF(0), fld_name);
262
262
        return(true);
263
263
      }
264
 
      length= my_decimal_precision_to_length(length, decimals, fld_type_modifier & UNSIGNED_FLAG);
265
 
      pack_length= my_decimal_get_binary_size(length, decimals);
 
264
      length= class_decimal_precision_to_length(length, decimals, fld_type_modifier & UNSIGNED_FLAG);
 
265
      pack_length= class_decimal_get_binary_size(length, decimals);
266
266
      break;
267
267
    case DRIZZLE_TYPE_VARCHAR:
268
268
      /*