~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.cc

  • Committer: Brian Aker
  • Date: 2011-02-27 19:43:52 UTC
  • mfrom: (2192.4.9 iter)
  • Revision ID: brian@tangent.org-20110227194352-w48j3ey8nhonecsd
MergeĀ inĀ find_ptr

Show diffs side-by-side

added added

removed removed

Lines of Context:
6004
6004
    vector<optimizer::SargableParam>::iterator iter= sargables.begin();
6005
6005
    while (iter != sargables.end())
6006
6006
    {
6007
 
      Field *field= (*iter).getField();
 
6007
      Field *field= iter->getField();
6008
6008
      JoinTable *join_tab= field->getTable()->reginfo.join_tab;
6009
6009
      key_map possible_keys= field->key_start;
6010
6010
      possible_keys&= field->getTable()->keys_in_use_for_query;
6011
6011
      bool is_const= true;
6012
 
      for (uint32_t j= 0; j < (*iter).getNumValues(); j++)
6013
 
        is_const&= (*iter).isConstItem(j);
 
6012
      for (uint32_t j= 0; j < iter->getNumValues(); j++)
 
6013
        is_const&= iter->isConstItem(j);
6014
6014
      if (is_const)
6015
6015
        join_tab[0].const_keys|= possible_keys;
6016
6016
      ++iter;