~stewart/drizzle/use-catalog-for-path

« back to all changes in this revision

Viewing changes to plugin/memory/hp_hash.cc

  • Committer: Brian Aker
  • Date: 2011-03-28 02:46:21 UTC
  • Revision ID: brian@tangent.org-20110328024621-wtkdtlvdplqm0ybf
Shift CHARSET_INFO to charset_info_st

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
    }
195
195
    if (seg->type == HA_KEYTYPE_TEXT)
196
196
    {
197
 
       const CHARSET_INFO * const cs= seg->charset;
 
197
       const charset_info_st * const cs= seg->charset;
198
198
       uint32_t length= seg->length;
199
199
       if (cs->mbmaxlen > 1)
200
200
       {
206
206
    }
207
207
    else if (seg->type == HA_KEYTYPE_VARTEXT1)  /* Any VARCHAR segments */
208
208
    {
209
 
       const CHARSET_INFO * const cs= seg->charset;
 
209
       const charset_info_st * const cs= seg->charset;
210
210
       uint32_t pack_length= 2;                     /* Key packing is constant */
211
211
       uint32_t length= uint2korr(pos);
212
212
       if (cs->mbmaxlen > 1)
252
252
    }
253
253
    if (seg->type == HA_KEYTYPE_TEXT)
254
254
    {
255
 
      const CHARSET_INFO * const cs= seg->charset;
 
255
      const charset_info_st * const cs= seg->charset;
256
256
      uint32_t char_length= seg->length;
257
257
      if (cs->mbmaxlen > 1)
258
258
      {
264
264
    }
265
265
    else if (seg->type == HA_KEYTYPE_VARTEXT1)  /* Any VARCHAR segments */
266
266
    {
267
 
      const CHARSET_INFO * const cs= seg->charset;
 
267
      const charset_info_st * const cs= seg->charset;
268
268
      uint32_t pack_length= seg->bit_start;
269
269
      uint32_t length= (pack_length == 1 ? (uint) *(unsigned char*) pos : uint2korr(pos));
270
270
      if (cs->mbmaxlen > 1)
326
326
    }
327
327
    if (seg->type == HA_KEYTYPE_TEXT)
328
328
    {
329
 
      const CHARSET_INFO * const cs= seg->charset;
 
329
      const charset_info_st * const cs= seg->charset;
330
330
      uint32_t char_length1;
331
331
      uint32_t char_length2;
332
332
      unsigned char *pos1= (unsigned char*)rec1 + seg->start;
354
354
      unsigned char *pos2= (unsigned char*) rec2 + seg->start;
355
355
      uint32_t char_length1, char_length2;
356
356
      uint32_t pack_length= seg->bit_start;
357
 
      const CHARSET_INFO * const cs= seg->charset;
 
357
      const charset_info_st * const cs= seg->charset;
358
358
      if (pack_length == 1)
359
359
      {
360
360
        char_length1= (uint) *(unsigned char*) pos1++;
419
419
    }
420
420
    if (seg->type == HA_KEYTYPE_TEXT)
421
421
    {
422
 
      const CHARSET_INFO * const cs= seg->charset;
 
422
      const charset_info_st * const cs= seg->charset;
423
423
      uint32_t char_length_key;
424
424
      uint32_t char_length_rec;
425
425
      unsigned char *pos= (unsigned char*) rec + seg->start;
445
445
    else if (seg->type == HA_KEYTYPE_VARTEXT1)  /* Any VARCHAR segments */
446
446
    {
447
447
      unsigned char *pos= (unsigned char*) rec + seg->start;
448
 
      const CHARSET_INFO * const cs= seg->charset;
 
448
      const charset_info_st * const cs= seg->charset;
449
449
      uint32_t pack_length= seg->bit_start;
450
450
      uint32_t char_length_rec= (pack_length == 1 ? (uint) *(unsigned char*) pos :
451
451
                             uint2korr(pos));
486
486
 
487
487
  for (seg=keydef->seg,endseg=seg+keydef->keysegs ; seg < endseg ; seg++)
488
488
  {
489
 
    const CHARSET_INFO * const cs= seg->charset;
 
489
    const charset_info_st * const cs= seg->charset;
490
490
    uint32_t char_length= seg->length;
491
491
    unsigned char *pos= (unsigned char*) rec + seg->start;
492
492
    if (seg->null_bit)