~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

  • Committer: Brian Aker
  • Date: 2010-10-22 17:44:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1873.
  • Revision ID: brian@tangent.org-20101022174434-q8fjovcpclzqer7n
TableShare is no longer in the house (i.e. we no longer directly have a copy
of it in cursor).

One more bit of the knot now gone.

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
    delete cond;
398
398
    cond= 0;
399
399
  }
400
 
  file->close_cached_file();
 
400
  close_cached_file(file);
401
401
}
402
402
 
403
403
 
464
464
    MAX_KEY if no such index was found.
465
465
*/
466
466
 
467
 
uint32_t optimizer::get_index_for_order(Table *table, Order *order, ha_rows limit)
 
467
uint32_t optimizer::get_index_for_order(Table *table, order_st *order, ha_rows limit)
468
468
{
469
469
  uint32_t idx;
470
470
  uint32_t match_key= MAX_KEY, match_key_len= MAX_KEY_LENGTH + 1;
471
 
  Order *ord;
 
471
  order_st *ord;
472
472
 
473
473
  for (ord= order; ord; ord= ord->next)
474
474
    if (!ord->asc)
4578
4578
  uint32_t key_infix_len= 0;          /* Length of key_infix. */
4579
4579
  optimizer::GroupMinMaxReadPlan *read_plan= NULL; /* The eventually constructed TRP. */
4580
4580
  uint32_t key_part_nr;
4581
 
  Order *tmp_group= NULL;
 
4581
  order_st *tmp_group= NULL;
4582
4582
  Item *item= NULL;
4583
4583
  Item_field *item_field= NULL;
4584
4584