1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

BUG#12873 - BTREE index on MEMORY table with multiple NULL values

doesn't work properly

Unique BTREE index on MEMORY table refuse multiple NULL values.

Fixed search_flag to allow multiple null values inside unique key.


heap/hp_write.c:
  Fixed search_flag to allow multiple null values inside unique key.
mysql-test/r/heap_btree.result:
  Testcase for BUG#12873.
mysql-test/t/heap_btree.test:
  Testcase for BUG#12873.
This commit is contained in:
unknown
2006-05-11 21:15:37 +05:00
parent 60bb69aa04
commit ca88ca16d0
3 changed files with 12 additions and 1 deletions

View File

@ -105,7 +105,7 @@ int hp_rb_write_key(HP_INFO *info, HP_KEYDEF *keyinfo, const byte *record,
custom_arg.key_length= hp_rb_make_key(keyinfo, info->recbuf, record, recpos);
if (keyinfo->flag & HA_NOSAME)
{
custom_arg.search_flag= SEARCH_FIND | SEARCH_SAME | SEARCH_UPDATE;
custom_arg.search_flag= SEARCH_FIND | SEARCH_UPDATE;
keyinfo->rb_tree.flag= TREE_NO_DUPS;
}
else