~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.cc

  • Committer: Brian Aker
  • Date: 2008-11-18 23:19:19 UTC
  • mfrom: (584.1.16 devel)
  • Revision ID: brian@tangent.org-20081118231919-w9sr347dtiwhccml
Merge of Monty's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
107
107
#include <drizzled/sql_select.h>
108
108
#include <drizzled/error.h>
109
109
#include <drizzled/cost_vect.h>
 
110
#include <drizzled/item/cmpfunc.h>
110
111
 
111
112
#include CMATH_H
112
113
 
1061
1062
  cleanup();
1062
1063
}
1063
1064
 
 
1065
 
 
1066
bool SQL_SELECT::check_quick(Session *session, bool force_quick_range,
 
1067
                             ha_rows limit)
 
1068
{
 
1069
  key_map tmp;
 
1070
  tmp.set_all();
 
1071
  return test_quick_select(session, tmp, 0, limit,
 
1072
                           force_quick_range, false) < 0;
 
1073
}
 
1074
 
 
1075
 
 
1076
bool SQL_SELECT::skip_record()
 
1077
{
 
1078
  return cond ? cond->val_int() == 0 : 0;
 
1079
}
 
1080
 
 
1081
 
1064
1082
QUICK_SELECT_I::QUICK_SELECT_I()
1065
1083
  :max_used_key_length(0),
1066
1084
   used_key_parts(0)
1346
1364
}
1347
1365
 
1348
1366
 
 
1367
void QUICK_RANGE_SELECT::save_last_pos()
 
1368
{
 
1369
  file->position(record);
 
1370
}
 
1371
 
 
1372
 
1349
1373
/*
1350
1374
  Initialize this quick select to be a part of a ROR-merged scan.
1351
1375
  SYNOPSIS