~fallenpegasus/drizzle/returning

« back to all changes in this revision

Viewing changes to drizzled/key.cc

  • Committer: Brian Aker
  • Date: 2009-01-28 08:27:13 UTC
  • mfrom: (813.1.7 new-temporal)
  • Revision ID: brian@tangent.org-20090128082713-13yfi46omee0wbpx
Import work from Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
390
390
          Align, returning not more than "char_length" characters.
391
391
        */
392
392
        uint32_t charpos, char_length= key_part->length / cs->mbmaxlen;
393
 
        if ((charpos= my_charpos(cs, tmp.ptr(),
394
 
                                 tmp.ptr() + tmp.length(),
 
393
        if ((charpos= my_charpos(cs, tmp.c_ptr(),
 
394
                                 tmp.c_ptr() + tmp.length(),
395
395
                                 char_length)) < key_part->length)
396
396
          tmp.length(charpos);
397
397
      }