~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-22 14:35:11 UTC
  • mto: This revision was merged to the branch mainline in revision 2347.
  • Revision ID: olafvdspek@gmail.com-20110622143511-bqcqg1tho8v0fn0d
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
979
979
  ha_rows roru_total_records;
980
980
  double roru_intersect_part= 1.0;
981
981
 
982
 
  range_scans= (optimizer::RangeReadPlan**)param->mem_root->alloc_root(sizeof(optimizer::RangeReadPlan*)* n_child_scans);
 
982
  range_scans= (optimizer::RangeReadPlan**)param->mem_root->alloc(sizeof(optimizer::RangeReadPlan*)* n_child_scans);
983
983
 
984
984
  /*
985
985
    Collect best 'range' scan for each of disjuncts, and, while doing so,
4241
4241
    make_prev_keypart_map(ref->key_parts);
4242
4242
  range->flag= (ref->key_length == key_info->key_length && (key_info->flags & HA_END_SPACE_KEY) == 0) ? EQ_RANGE : 0;
4243
4243
 
4244
 
  quick->key_parts=key_part=(KEY_PART *)quick->alloc.alloc_root(sizeof(KEY_PART)*ref->key_parts);
 
4244
  quick->key_parts=key_part=(KEY_PART *)quick->alloc.alloc(sizeof(KEY_PART)*ref->key_parts);
4245
4245
 
4246
4246
  for (part=0 ; part < ref->key_parts ;part++,key_part++)
4247
4247
  {