~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Stewart Smith
  • Date: 2009-03-18 00:29:24 UTC
  • mto: (942.1.10 mordred)
  • mto: This revision was merged to the branch mainline in revision 945.
  • Revision ID: stewart@flamingspork.com-20090318002924-gixoh4t5mhbw8qyz
make set_if_bigger typesafe for C and C++. Fix up everywhere.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1072
1072
        calculate_interval_lengths(cs, interval, &field_length, &dummy);
1073
1073
        sql_field->length= field_length;
1074
1074
      }
1075
 
      set_if_smaller(sql_field->length, MAX_FIELD_WIDTH-1);
 
1075
      set_if_smaller(sql_field->length, (uint32_t)MAX_FIELD_WIDTH-1);
1076
1076
    }
1077
1077
 
1078
1078
    sql_field->create_length_to_internal_length();