~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/records.cc

Merge Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include "drizzled/session.h"
26
26
#include "drizzled/records.h"
27
27
#include "drizzled/optimizer/range.h"
 
28
#include "drizzled/internal/my_sys.h"
 
29
#include "drizzled/internal/iocache.h"
28
30
 
29
31
using namespace drizzled;
30
32
 
92
94
  info->ignore_not_found_rows= 0;
93
95
  table->status=0;                      /* And it's always found */
94
96
 
95
 
  if (select && my_b_inited(&select->file))
96
 
    tempfile= &select->file;
 
97
  if (select && my_b_inited(select->file))
 
98
    tempfile= select->file;
97
99
  else
98
100
    tempfile= table->sort.io_cache;
99
101
  if (tempfile && my_b_inited(tempfile)) // Test if ref-records was used