~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/opt_range.cc

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1062
1062
  cleanup();
1063
1063
}
1064
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
 
1065
1082
QUICK_SELECT_I::QUICK_SELECT_I()
1066
1083
  :max_used_key_length(0),
1067
1084
   used_key_parts(0)
1347
1364
}
1348
1365
 
1349
1366
 
 
1367
void QUICK_RANGE_SELECT::save_last_pos()
 
1368
{
 
1369
  file->position(record);
 
1370
}
 
1371
 
 
1372
 
1350
1373
/*
1351
1374
  Initialize this quick select to be a part of a ROR-merged scan.
1352
1375
  SYNOPSIS