diff options
author | unknown <bar@mysql.com> | 2004-08-19 16:07:18 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2004-08-19 16:07:18 +0500 |
commit | cc6d65b8d8227740aeba00a59e1de7c386967d52 (patch) | |
tree | 1618c5f0fde5f98631cf17c50871b3180603409a /sql/ha_heap.cc | |
parent | cba27e4a91d18439f421b3a33d27df8a2bfa04c1 (diff) | |
download | mariadb-git-cc6d65b8d8227740aeba00a59e1de7c386967d52.tar.gz |
Bug 4531: unique key prefix interacts poorly with utf8
Check HEAP+HASH, binary collation
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r-- | sql/ha_heap.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc index a7f6cc45831..d7327362286 100644 --- a/sql/ha_heap.cc +++ b/sql/ha_heap.cc @@ -430,7 +430,7 @@ int ha_heap::create(const char *name, TABLE *table_arg, { if (!f_is_packed(flag) && f_packtype(flag) == (int) FIELD_TYPE_DECIMAL && - !(flag & FIELDFLAG_BINARY)) + !(field->charset() == &my_charset_bin)) seg->type= (int) HA_KEYTYPE_TEXT; else seg->type= (int) HA_KEYTYPE_BINARY; |