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 | ca7ce9d4427fb8232bd3f58969ef50300a415fe5 (patch) | |
tree | 1618c5f0fde5f98631cf17c50871b3180603409a /sql/ha_heap.cc | |
parent | 3094f9e6abe613ca08b75a83285c594fb4033bc1 (diff) | |
download | mariadb-git-ca7ce9d4427fb8232bd3f58969ef50300a415fe5.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; |