~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/access_method/system.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:
19
19
 */
20
20
 
21
21
#include <config.h>
22
 
#include <drizzled/session.h>
23
22
#include <drizzled/join_table.h>
24
23
#include <drizzled/sql_select.h>
25
24
#include <drizzled/optimizer/access_method/system.h>
 
25
#include <drizzled/table.h>
26
26
 
27
27
using namespace drizzled;
28
28
 
29
 
bool optimizer::System::getStats(Table *table, JoinTable *join_tab)
 
29
void optimizer::System::getStats(Table& table, JoinTable& join_tab)
30
30
{
31
 
  table->status= STATUS_NO_RECORD;
32
 
  join_tab->read_first_record= reinterpret_cast<Read_record_func>(join_tab->joinReadSystem());
33
 
  join_tab->read_record.read_record= join_no_more_records;
34
 
  return false;
 
31
  table.status= STATUS_NO_RECORD;
 
32
  join_tab.read_first_record= reinterpret_cast<Read_record_func>(join_tab.joinReadSystem());
 
33
  join_tab.read_record.read_record= join_no_more_records;
35
34
}