~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Lee Bieber
  • Date: 2011-02-23 23:22:48 UTC
  • mfrom: (2183.2.20 list2)
  • mto: This revision was merged to the branch mainline in revision 2197.
  • Revision ID: kalebral@gmail.com-20110223232248-ev4y8pyt16b806o0
Merge Olaf - Use List::size()

Show diffs side-by-side

added added

removed removed

Lines of Context:
4775
4775
        */
4776
4776
        if (used_key_parts_map.test(key_part_nr))
4777
4777
          continue;
4778
 
        if (key_part_nr < 1 || key_part_nr > join->fields_list.elements)
 
4778
        if (key_part_nr < 1 || key_part_nr > join->fields_list.size())
4779
4779
          goto next_index;
4780
4780
        cur_part= cur_index_info->key_part + key_part_nr - 1;
4781
4781
        cur_group_prefix_len+= cur_part->store_length;