mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Bug#4521: unique key prefix interacts poorly with utf8.
Fix for binary collations for MyISAM and HEAP BTREE. This patch also changes trailing spaces behaviour for binary collations. Binary collations now have PAD characteristic too.
This commit is contained in:
@ -357,9 +357,11 @@ ulong ha_berkeley::index_flags(uint idx, uint part, bool all_parts) const
|
||||
case HA_KEYTYPE_VARTEXT:
|
||||
/*
|
||||
As BDB stores only one copy of equal strings, we can't use key read
|
||||
on these
|
||||
on these. Binary collations do support key read though.
|
||||
*/
|
||||
flags&= ~HA_KEYREAD_ONLY;
|
||||
if (!(table->key_info[idx].key_part[i].field->charset()->state
|
||||
& MY_CS_BINSORT))
|
||||
flags&= ~HA_KEYREAD_ONLY;
|
||||
break;
|
||||
default: // Keep compiler happy
|
||||
break;
|
||||
|
Reference in New Issue
Block a user