diff options
author | Alexander Barkov <bar@mysql.com> | 2010-08-23 13:56:21 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mysql.com> | 2010-08-23 13:56:21 +0400 |
commit | 1ed02deea0986ee2aefd7b8bc61390f3675c2e94 (patch) | |
tree | b11b7fb2b2f19540079ca7bdfb3f65d6b6d219ab /sql/partition_info.h | |
parent | 508104d7d026bed6b9a3796f17515fec9de4b5cc (diff) | |
download | mariadb-git-1ed02deea0986ee2aefd7b8bc61390f3675c2e94.tar.gz |
Bug#52121 partition by key on utf32 enum field cause debug assertion: (length % 4) == 0
Problem: ENUM columns are sorted and distributed according to their
numeric value, but Field::hash() incorrectly passed string character set
(utf32) in combination with numeric value to the hash function,
which made assertion fail.
Fix: pass "binary" character set in combination with numeric value
to the hash function.
mysql-test/suite/parts/r/part_ctype_utf32.result
Adding tests
mysql-test/suite/parts/t/part_ctype_utf32.test
Adding test
sql/field.cc
Pass correct character set pointer to the hash function.
Diffstat (limited to 'sql/partition_info.h')
0 files changed, 0 insertions, 0 deletions