diff options
Diffstat (limited to 'heap/hp_write.c')
-rw-r--r-- | heap/hp_write.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/heap/hp_write.c b/heap/hp_write.c index 33527855e60..9edd897eb34 100644 --- a/heap/hp_write.c +++ b/heap/hp_write.c @@ -61,6 +61,8 @@ int heap_write(HP_INFO *info, const byte *record) info->current_ptr=pos; info->current_hash_ptr=0; info->update|=HA_STATE_AKTIV; + if (share->auto_key) + heap_update_auto_increment(info, record); DBUG_RETURN(0); err: DBUG_PRINT("info",("Duplicate key: %d", keydef - share->keydef)); |