~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/myisam/mi_key.cc

  • Committer: Stewart Smith
  • Date: 2009-10-06 05:50:22 UTC
  • mto: This revision was merged to the branch mainline in revision 1170.
  • Revision ID: stewart@flamingspork.com-20091006055022-uh79cvwppcszr3xk
removeĀ unusedĀ HA_KEYTYPE_BIT

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
                  length);
77
77
 
78
78
    pos= (unsigned char*) record+keyseg->start;
79
 
    if (type == HA_KEYTYPE_BIT)
80
 
    {
81
 
      if (keyseg->bit_length)
82
 
      {
83
 
        unsigned char bits= get_rec_bits((unsigned char*) record + keyseg->bit_pos,
84
 
                                 keyseg->bit_start, keyseg->bit_length);
85
 
        *key++= bits;
86
 
        length--;
87
 
      }
88
 
      memcpy(key, pos, length);
89
 
      key+= length;
90
 
      continue;
91
 
    }
 
79
 
92
80
    if (keyseg->flag & HA_SPACE_PACK)
93
81
    {
94
82
      length= cs->cset->lengthsp(cs, (char*) pos, length);
294
282
      }
295
283
      record[keyseg->null_pos]&= ~keyseg->null_bit;
296
284
    }
297
 
    if (keyseg->type == HA_KEYTYPE_BIT)
298
 
    {
299
 
      uint32_t length= keyseg->length;
300
285
 
301
 
      if (keyseg->bit_length)
302
 
      {
303
 
        unsigned char bits= *key++;
304
 
        set_rec_bits(bits, record + keyseg->bit_pos, keyseg->bit_start,
305
 
                     keyseg->bit_length);
306
 
        length--;
307
 
      }
308
 
      else
309
 
      {
310
 
        clr_rec_bits(record + keyseg->bit_pos, keyseg->bit_start,
311
 
                     keyseg->bit_length);
312
 
      }
313
 
      memcpy(record + keyseg->start, key, length);
314
 
      key+= length;
315
 
      continue;
316
 
    }
317
286
    if (keyseg->flag & HA_SPACE_PACK)
318
287
    {
319
288
      uint32_t length;