diff options
Diffstat (limited to 'heap/hp_write.c')
-rw-r--r-- | heap/hp_write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/heap/hp_write.c b/heap/hp_write.c index 0d68bb96580..a219c8be23a 100644 --- a/heap/hp_write.c +++ b/heap/hp_write.c @@ -239,7 +239,9 @@ int _hp_write_key(register HP_SHARE *info, HP_KEYDEF *keyinfo, } /* Check if dupplicated keys */ - if ((keyinfo->flag & HA_NOSAME) && pos == gpos) + if ((keyinfo->flag & HA_NOSAME) && pos == gpos && + (!(keyinfo->flag & HA_NULL_PART_KEY) || + !hp_if_null_in_key(keyinfo, record))) { pos=empty; do |