summaryrefslogtreecommitdiff
path: root/heap/hp_write.c
diff options
context:
space:
mode:
authorram@mysql.r18.ru <>2002-10-07 17:49:03 +0500
committerram@mysql.r18.ru <>2002-10-07 17:49:03 +0500
commit2e1a0c031a0ea3d7505690c6999d5d13e2a3dfe6 (patch)
treeebf4b60cc6d75288281e8c8da41994ba6bc7d89f /heap/hp_write.c
parent6976c7cf3c83e3c51770ebd7304b7f69a76a28f0 (diff)
downloadmariadb-git-2e1a0c031a0ea3d7505690c6999d5d13e2a3dfe6.tar.gz
auto_increment for heap tables
test case
Diffstat (limited to 'heap/hp_write.c')
-rw-r--r--heap/hp_write.c2
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));