~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/field.cc

  • Committer: Brian Aker
  • Date: 2009-05-03 22:35:33 UTC
  • mfrom: (997.2.26 mordred)
  • Revision ID: brian@gaz-20090503223533-lv7lwqelv08dnv2j
Merge of Monty's code

Show diffs side-by-side

added added

removed removed

Lines of Context:
725
725
}
726
726
 
727
727
/*
728
 
 *
 
728
 * Helper function which tests whether a bit is set in the 
 
729
 * bitset or not. It also sets the bit after this test is
 
730
 * performed.
729
731
 */
730
732
static bool test_and_set_bit(bitset<MAX_FIELDS> *bitmap, uint32_t pos)
731
733
{
929
931
        /* First usage of column */
930
932
        table->used_fields++;                     // Used to optimize loops
931
933
        /* purecov: begin inspected */
932
 
        table->covering_keys.intersect(field->part_of_key);
 
934
        table->covering_keys&= field->part_of_key;
933
935
        /* purecov: end */
934
936
      }
935
937
    }