• unknown's avatar
    Bug#22052 Trailing spaces are not removed from UNICODE fields in an index · 9d75f7c9
    unknown authored
      Fix: using charset-aware functions cs->cset->lengthsp() and cs->cset->fill()
      instead of single byte code which is not UCS2 compatible.
    
    
    myisam/mi_key.c:
      Using character-set aware functions to trim and append spaces.
    myisam/mi_open.c:
      Initialize charset for BINARY/VARBINARY to my_charset_bin,
          instead of NULL
    mysql-test/r/ctype_ucs.result:
      Adding test case
    mysql-test/t/ctype_ucs.test:
      Adding test case
    9d75f7c9
mi_key.c 13.9 KB