~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/handler.cc

  • Committer: Monty Taylor
  • Date: 2009-05-08 19:07:39 UTC
  • mto: This revision was merged to the branch mainline in revision 1009.
  • Revision ID: mordred@inaugust.com-20090508190739-rwas5y9xjg1a92p6
Reverted a crap-ton of padraig's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1496
1496
 
1497
1497
 
1498
1498
/**
 
1499
  MySQL signal that it changed the column bitmap
 
1500
 
 
1501
  This is for handlers that needs to setup their own column bitmaps.
 
1502
  Normally the handler should set up their own column bitmaps in
 
1503
  index_init() or rnd_init() and in any column_bitmaps_signal() call after
 
1504
  this.
 
1505
 
 
1506
  The handler is allowed to do changes to the bitmap after a index_init or
 
1507
  rnd_init() call is made as after this, MySQL will not use the bitmap
 
1508
  for any program logic checking.
 
1509
*/
 
1510
void handler::column_bitmaps_signal()
 
1511
{
 
1512
  return;
 
1513
}
 
1514
 
 
1515
 
 
1516
/**
1499
1517
  Reserves an interval of auto_increment values from the handler.
1500
1518
 
1501
1519
  offset and increment means that we want values to be of the form
1522
1540
  (void) extra(HA_EXTRA_KEYREAD);
1523
1541
  table->mark_columns_used_by_index_no_reset(table->s->next_number_index,
1524
1542
                                        table->read_set);
 
1543
  column_bitmaps_signal();
1525
1544
  index_init(table->s->next_number_index, 1);
1526
1545
  if (table->s->next_number_keypart == 0)
1527
1546
  {                                             // Autoincrement at key-start
3028
3047
  KEY_PART_INFO *kp_end= kp + table->key_info[keyno].key_parts;
3029
3048
  for (; kp != kp_end; kp++)
3030
3049
  {
3031
 
    if (!kp->field->part_of_key.test(keyno))
 
3050
    if (!kp->field->part_of_key.is_set(keyno))
3032
3051
      return true;
3033
3052
  }
3034
3053
  return false;