~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Nathan Williams
  • Date: 2009-06-08 18:34:36 UTC
  • mto: This revision was merged to the branch mainline in revision 1063.
  • Revision ID: nathanlws@gmail.com-20090608183436-lt5pwvngiyox67t9
Changed container from list to vector for CreateField::interval_list. There is never inserts into the middle of the container, only push_back. Per jaypipes suggestion.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1008
1008
                                          sizeof(comma_buf));
1009
1009
        assert(comma_length > 0);
1010
1010
 
1011
 
        list<String*>::iterator int_it= sql_field->interval_list.begin();
 
1011
        vector<String*>::iterator int_it= sql_field->interval_list.begin();
1012
1012
        for (uint32_t i= 0; int_it != sql_field->interval_list.end(); ++int_it, ++i)
1013
1013
        {
1014
1014
          String *tmp= *int_it;