diff options
Diffstat (limited to 'heap/hp_rkey.c')
-rw-r--r-- | heap/hp_rkey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/heap/hp_rkey.c b/heap/hp_rkey.c index 2c23d9d721e..a88139bbdee 100644 --- a/heap/hp_rkey.c +++ b/heap/hp_rkey.c @@ -64,7 +64,7 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key, info->update= 0; DBUG_RETURN(my_errno); } - if (!(keyinfo->flag & HA_NOSAME)) + if (!(keyinfo->flag & HA_NOSAME) || (keyinfo->flag & HA_END_SPACE_KEY)) memcpy(info->lastkey, key, (size_t) keyinfo->length); } memcpy(record, pos, (size_t) share->reclength); |