mirror of
https://github.com/MariaDB/server.git
synced 2026-05-14 19:07:15 +02:00
Merge chilla.local:/home/mydev/mysql-4.1-bug24985
into chilla.local:/home/mydev/mysql-5.0-bug24985
mysql-test/r/heap_btree.result:
Auto merged
sql/ha_heap.cc:
Auto merged
mysql-test/t/heap_btree.test:
Bug#24985 - UTF8 ENUM primary key on MEMORY using BTREE
causes incorrect duplicate entries
Manual merge from 4.1
This commit is contained in:
commit
42422d0e62
3 changed files with 34 additions and 1 deletions
|
|
@ -604,7 +604,10 @@ int ha_heap::create(const char *name, TABLE *table_arg,
|
|||
seg->length= (uint) key_part->length;
|
||||
seg->flag= key_part->key_part_flag;
|
||||
|
||||
seg->charset= field->charset();
|
||||
if (field->flags & (ENUM_FLAG | SET_FLAG))
|
||||
seg->charset= &my_charset_bin;
|
||||
else
|
||||
seg->charset= field->charset();
|
||||
if (field->null_ptr)
|
||||
{
|
||||
seg->null_bit= field->null_bit;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue