diff options
Diffstat (limited to 'heap')
-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 872560b1a91..157267f7149 100644 --- a/heap/hp_rkey.c +++ b/heap/hp_rkey.c @@ -37,7 +37,7 @@ int heap_rkey(HP_INFO *info, byte *record, int inx, const byte *key) } memcpy(record,pos,(size_t) share->reclength); info->update=HA_STATE_AKTIV; - if (!(share->keydef->flag & HA_NOSAME)) + if (!(share->keydef[inx].flag & HA_NOSAME)) memcpy(info->lastkey,key,(size_t) share->keydef[inx].length); DBUG_RETURN(0); } |