• unknown's avatar
    Bug#13046: LIKE pattern matching using prefix · f8866c16
    unknown authored
                 index doesn't return correct result
    item_cmpfunc.cc:
      Use charset of LIKE to decide whether
      to use 8bit or Unicode "escape" value.
      But use charset of "escape" to scan escape character.
    strings/ctype-xxx.c:
      We cannot reduce "end" pointer using charpos(),
      because of possible escape characters in the string.
      Limit the loop using count of written characters instead.
    ctype_like_escape.inc:
      new file
    mysql-test/t/ctype_xxx:
    mysql-test/r/ctype_xxx:
      Adding test case.
    
    
    strings/ctype-big5.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead.
    strings/ctype-cp932.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    strings/ctype-gbk.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    strings/ctype-mb.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    strings/ctype-simple.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    strings/ctype-sjis.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    strings/ctype-tis620.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    strings/ctype-ucs2.c:
      Bug#13046: LIKE pattern matching using prefix index doesn't return correct
      result
      We cannot change "end" pointer using charpos(),
      because of possible escape characters.
      Use limit by count of written characters instead
    mysql-test/t/ctype_big5.test:
      Adding test case.
    mysql-test/t/ctype_cp932.test:
      Adding test case.
    mysql-test/t/ctype_gbk.test:
      Adding test case.
    mysql-test/t/ctype_latin1.test:
      Adding test case.
    mysql-test/t/ctype_sjis.test:
      Adding test case.
    mysql-test/t/ctype_tis620.test:
      Adding test case.
    mysql-test/t/ctype_uca.test:
      Adding test case.
    mysql-test/t/ctype_ucs.test:
      Adding test case.
    mysql-test/t/ctype_ujis.test:
      Adding test case.
    mysql-test/t/ctype_utf8.test:
      Adding test case.
    mysql-test/r/ctype_big5.result:
      Adding test case.
    mysql-test/r/ctype_cp932.result:
      Adding test case.
    mysql-test/r/ctype_gbk.result:
      Adding test case.
    mysql-test/r/ctype_latin1.result:
      Adding test case.
    mysql-test/r/ctype_sjis.result:
      Adding test case.
    mysql-test/r/ctype_tis620.result:
      Adding test case.
    mysql-test/r/ctype_uca.result:
      Adding test case.
    mysql-test/r/ctype_ucs.result:
      Adding test case.
    mysql-test/r/ctype_ujis.result:
      Adding test case.
    mysql-test/r/ctype_utf8.result:
      Adding test case.
    sql/item_cmpfunc.cc:
      More fixes.
    f8866c16
ctype-sjis.c 247 KB