~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Brian Aker
  • Date: 2009-08-21 06:18:23 UTC
  • mfrom: (1115.3.12 captain)
  • Revision ID: brian@gaz-20090821061823-ljcpbpvun22lsvem
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
397
397
    FALSE  Otherwise
398
398
*/
399
399
 
400
 
bool is_key_used(Table *table, uint32_t idx, const MY_BITMAP *fields)
 
400
bool is_key_used(Table *table, uint32_t idx, const MyBitmap *fields)
401
401
{
402
 
  bitmap_clear_all(&table->tmp_set);
 
402
  table->tmp_set.clearAll();
403
403
  table->mark_columns_used_by_index_no_reset(idx, &table->tmp_set);
404
404
  if (bitmap_is_overlapping(&table->tmp_set, fields))
405
405
    return 1;