summaryrefslogtreecommitdiff
path: root/heap
diff options
context:
space:
mode:
authorunknown <svoj@april.(none)>2006-05-11 21:15:37 +0500
committerunknown <svoj@april.(none)>2006-05-11 21:15:37 +0500
commitca88ca16d09004430bfff91f188a94c4967a4a5a (patch)
treefd49c86fda5c965f3578c980c683b4cde3dc6a46 /heap
parent60bb69aa04a1795d6c1156e9814ce446662a8967 (diff)
downloadmariadb-git-ca88ca16d09004430bfff91f188a94c4967a4a5a.tar.gz
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.
Diffstat (limited to 'heap')
-rw-r--r--heap/hp_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_write.c b/heap/hp_write.c
index a60d32eecb6..bc94e3bfae4 100644
--- a/heap/hp_write.c
+++ b/heap/hp_write.c
@@ -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