~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

  • Committer: Brian Aker
  • Date: 2009-11-12 16:13:04 UTC
  • mfrom: (1211.1.7 staging)
  • Revision ID: brian@gaz-20091112161304-opamiauv36fg0n6u
Rollup of Brian, Padraig, and Stewart patches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
132
132
      length*= charset->mbmaxlen;
133
133
      key_length= pack_length;
134
134
      break;
135
 
    case DRIZZLE_TYPE_NEWDECIMAL:
 
135
    case DRIZZLE_TYPE_DECIMAL:
136
136
      key_length= pack_length=
137
137
        my_decimal_get_binary_size(my_decimal_length_to_precision(length,
138
138
                  decimals,
240
240
      break;
241
241
    case DRIZZLE_TYPE_NULL:
242
242
      break;
243
 
    case DRIZZLE_TYPE_NEWDECIMAL:
 
243
    case DRIZZLE_TYPE_DECIMAL:
244
244
      my_decimal_trim(&length, &decimals);
245
245
      if (length > DECIMAL_MAX_PRECISION)
246
246
      {