~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/join.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-25 13:36:24 UTC
  • mto: This revision was merged to the branch mainline in revision 2349.
  • Revision ID: olafvdspek@gmail.com-20110625133624-hzy2ordecn161qco
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
5057
5057
      tab->insideout_buf= join.session->mem.alloc(tab->table->key_info[tab->index].key_length);
5058
5058
    }
5059
5059
 
5060
 
    optimizer::AccessMethodFactory &factory= optimizer::AccessMethodFactory::singleton();
5061
 
    boost::shared_ptr<optimizer::AccessMethod> access_method(factory.createAccessMethod(tab->type));
5062
 
 
5063
 
    if (! access_method)
5064
 
    {
5065
 
      /**
5066
 
       * @todo
5067
 
       * Is abort() the correct thing to call here? I call this here because it was what was called in
5068
 
       * the default case for the switch statement that used to be here.
5069
 
       */
5070
 
      abort();
5071
 
    }
5072
 
 
5073
 
    access_method->getStats(table, tab);
 
5060
    optimizer::AccessMethodFactory::create(tab->type)->getStats(*table, *tab);
5074
5061
  }
5075
5062
 
5076
5063
  join.join_tab[join.tables-1].next_select= NULL; /* Set by do_select */