mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +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:
@@ -303,10 +303,10 @@ int Arg_comparator::set_compare_func(Item_bool_func2 *item, Item_result type)
|
||||
my_coll_agg_error((*a)->collation, (*b)->collation, owner->func_name());
|
||||
return 1;
|
||||
}
|
||||
if (my_binary_compare(cmp_collation.collation))
|
||||
if (cmp_collation.collation == &my_charset_bin)
|
||||
{
|
||||
/*
|
||||
We are using binary collation, change to compare byte by byte,
|
||||
We are using BLOB/BINARY/VARBINARY, change to compare byte by byte,
|
||||
without removing end space
|
||||
*/
|
||||
if (func == &Arg_comparator::compare_string)
|
||||
|
Reference in New Issue
Block a user