summaryrefslogtreecommitdiff
path: root/heap/hp_create.c
diff options
context:
space:
mode:
authorgluh@gluh.mysql.r18.ru <>2005-03-17 18:44:24 +0300
committergluh@gluh.mysql.r18.ru <>2005-03-17 18:44:24 +0300
commitedb4dd53661bb7c1419691feb4a4b65080f0278f (patch)
tree81b72c5a0cb29ee0d9693fe042239f0720aeb59e /heap/hp_create.c
parentb435d6e8624800e63f7b1b3e49f181c186db7c21 (diff)
downloadmariadb-git-edb4dd53661bb7c1419691feb4a4b65080f0278f.tar.gz
after merge fix
Diffstat (limited to 'heap/hp_create.c')
-rw-r--r--heap/hp_create.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/heap/hp_create.c b/heap/hp_create.c
index 17aa92c9201..8fcf7dde000 100644
--- a/heap/hp_create.c
+++ b/heap/hp_create.c
@@ -168,6 +168,8 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef,
keyinfo->write_key= hp_write_key;
keyinfo->hash_buckets= 0;
}
+ if ((keyinfo->flag & HA_AUTO_KEY) && create_info->with_auto_increment)
+ share->auto_key= i + 1;
}
share->min_records= min_records;
share->max_records= max_records;