~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table_proto_write.cc

Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
  List<CreateField>::iterator it(create_fields.begin());
56
56
  message::Table::TableOptions *table_options= table_proto.mutable_options();
57
57
 
58
 
  if (create_fields.elements > MAX_FIELDS)
 
58
  if (create_fields.size() > MAX_FIELDS)
59
59
  {
60
60
    my_error(ER_TOO_MANY_FIELDS, MYF(0), ER(ER_TOO_MANY_FIELDS));
61
61
    return true;