~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/create_field.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 20:05:58 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622200558-oq3jb987di9yj70r
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
206
206
  {
207
207
    my_error(ER_TOO_BIG_SCALE, MYF(0), decimals, fld_name,
208
208
             NOT_FIXED_DEC-1);
209
 
    return(true);
 
209
    return true;
210
210
  }
211
211
 
212
212
  sql_type= fld_type;
243
243
      {
244
244
        my_error(ER_TOO_BIG_PRECISION, MYF(0), length, fld_name,
245
245
                DECIMAL_MAX_PRECISION);
246
 
        return(true);
 
246
        return true;
247
247
      }
248
248
      if (length < decimals)
249
249
      {
250
250
        my_error(ER_M_BIGGER_THAN_D, MYF(0), fld_name);
251
 
        return(true);
 
251
        return true;
252
252
      }
253
253
      length= class_decimal_precision_to_length(length, decimals, fld_type_modifier & UNSIGNED_FLAG);
254
254
      pack_length= class_decimal_get_binary_size(length, decimals);
274
274
          decimals != NOT_FIXED_DEC)
275
275
      {
276
276
        my_error(ER_M_BIGGER_THAN_D, MYF(0), fld_name);
277
 
        return(true);
 
277
        return true;
278
278
      }
279
279
      break;
280
280
    case DRIZZLE_TYPE_MICROTIME:
369
369
    if (res->length())
370
370
    {
371
371
      my_error(ER_BLOB_CANT_HAVE_DEFAULT, MYF(0), field_name);
372
 
      return(true);
 
372
      return true;
373
373
    }
374
374
  }
375
375