diff options
author | unknown <ramil/ram@mysql.com/myoffice.izhnet.ru> | 2006-08-10 15:06:22 +0500 |
---|---|---|
committer | unknown <ramil/ram@mysql.com/myoffice.izhnet.ru> | 2006-08-10 15:06:22 +0500 |
commit | bfdbb780c26aae2705cf0d7e3048b5c0e40f59e1 (patch) | |
tree | 0a28f24a1037885943d5f500cd072fa77358df6b /mysql-test/t/distinct.test | |
parent | 70269a091e0fe4d7331ddcace4d248947e304fcb (diff) | |
download | mariadb-git-bfdbb780c26aae2705cf0d7e3048b5c0e40f59e1.tar.gz |
Fix for bug #20709: Collation not used in group by on 4.1.
myisam/mi_uniue.c:mi_check_unique() should skip trailing spaces comparing
TEXT and VARTTEXT key segments.
myisam/mi_unique.c:
Fix for bug #20709: Collation not used in group by on 4.1.
myisam/mi_uniue.c:mi_check_unique() should skip trailing spaces comparing
TEXT and VARTTEXT key segments.
Example: assume, we have a 'char(200) collate utf8_unicode_ci' field,
there are two records with _utf8"0x65" and _utf8"0xC3A9" characters;
these values are equal according
to the utf8_unicode_ci collation, but two 600 byte length corresponding keys:
"0x65<0x20 repeats 599 times>" and "0xC3A9<0x20 repeats 598 times>" are not
equal if we count trailing spaces and it may cause inconsequent behavior.
So, let's pass 1 as the skip_end_space parameter value to the mi_compare_text()
function for proper TEXT and VARTTEXT key segments comparison.
mysql-test/r/ctype_utf8.result:
Fix for bug #20709: Collation not used in group by on 4.1.
- test results.
mysql-test/t/ctype_utf8.test:
Fix for bug #20709: Collation not used in group by on 4.1.
- test case.
Diffstat (limited to 'mysql-test/t/distinct.test')
0 files changed, 0 insertions, 0 deletions