summaryrefslogtreecommitdiff
path: root/myisammrg
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2007-03-28 18:57:30 +0500
committerunknown <bar@mysql.com>2007-03-28 18:57:30 +0500
commitb5cc4fa61d615800ab13d428fae0296dbef82b81 (patch)
treeb8f6eee64c7e1d9c576584f7fd0c94bb6afb1581 /myisammrg
parent685d21b72f201a2eb16718e73c76e62ee708458d (diff)
downloadmariadb-git-b5cc4fa61d615800ab13d428fae0296dbef82b81.tar.gz
Bug#22638 SOUNDEX broken for international characters
Problem: SOUNDEX returned an invalid string for international characters in multi-byte character sets. For example: for a Chinese/Japanese 3-byte long character _utf8 0xE99885 it took only the very first byte 0xE9, put it into the outout string and then appended with three DIGIT ZERO characters, so the result was 0xE9303030 - which is an invalide utf8 string. Fix: make SOUNDEX() multi-byte aware and - put only complete characters into result, thus return only valid strings. This patch also makes SOUNDEX() compatible with UCS2. mysql-test/r/ctype_ucs.result: Adding tests mysql-test/r/ctype_utf8.result: Adding tests mysql-test/t/ctype_ucs.test: Adding tests mysql-test/t/ctype_utf8.test: Adding tests sql/item_strfunc.cc: Making soundex multi-byte aware.
Diffstat (limited to 'myisammrg')
0 files changed, 0 insertions, 0 deletions