~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/optimizer/quick_group_min_max_select.cc

  • Committer: Monty Taylor
  • Date: 2011-03-08 06:21:17 UTC
  • mfrom: (2223.1.3 build)
  • Revision ID: mordred@inaugust.com-20110308062117-4i2syq1gqtmcmcyk
Merge Olaf - XID and Dynamic_array refactoring
Merge Andrew - Optimizer bugs

Show diffs side-by-side

added added

removed removed

Lines of Context:
224
224
  if (quick_prefix_select &&
225
225
      group_prefix_len < quick_prefix_select->max_used_key_length)
226
226
  {
227
 
    DYNAMIC_ARRAY *arr= NULL;
228
 
    uint32_t inx;
229
 
 
230
 
    for (inx= 0, arr= &quick_prefix_select->ranges; inx < arr->elements; inx++)
231
 
    {
232
 
      optimizer::QuickRange *range= NULL;
233
 
 
234
 
      get_dynamic(arr, (unsigned char*)&range, inx);
235
 
      range->flag &= ~(NEAR_MIN | NEAR_MAX);
236
 
    }
 
227
    DYNAMIC_ARRAY& arr= quick_prefix_select->ranges;
 
228
    for (size_t inx= 0; inx < arr.size(); inx++)
 
229
      reinterpret_cast<optimizer::QuickRange**>(arr.buffer)[inx]->flag &= ~(NEAR_MIN | NEAR_MAX);
237
230
  }
238
231
}
239
232