~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/range.cc

Merge in tdavies order c++ conversion

Show diffs side-by-side

added added

removed removed

Lines of Context:
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_st *order, ha_rows limit)
 
467
uint32_t optimizer::get_index_for_order(Table *table, Order *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_st *ord;
 
471
  Order *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_st *tmp_group= NULL;
 
4581
  Order *tmp_group= NULL;
4582
4582
  Item *item= NULL;
4583
4583
  Item_field *item_field= NULL;
4584
4584