summaryrefslogtreecommitdiff
path: root/heap/hp_write.c
diff options
context:
space:
mode:
authorsvoj@april.(none) <>2006-05-11 21:15:37 +0500
committersvoj@april.(none) <>2006-05-11 21:15:37 +0500
commit32a07617bc423f5c55166368fad0d9f596e00764 (patch)
treefd49c86fda5c965f3578c980c683b4cde3dc6a46 /heap/hp_write.c
parentd24b4d6e9979c22ae91bfa4ed72e44636c90e098 (diff)
downloadmariadb-git-32a07617bc423f5c55166368fad0d9f596e00764.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.
Diffstat (limited to 'heap/hp_write.c')
-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