diff options
Diffstat (limited to 'heap/hp_create.c')
-rw-r--r-- | heap/hp_create.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/heap/hp_create.c b/heap/hp_create.c index 7eee6eaa64d..6c38d54cb12 100644 --- a/heap/hp_create.c +++ b/heap/hp_create.c @@ -21,7 +21,8 @@ static void init_block(HP_BLOCK *block,uint reclength,ulong min_records, ulong max_records); int heap_create(const char *name, uint keys, HP_KEYDEF *keydef, - uint reclength, ulong max_records, ulong min_records) + uint reclength, ulong max_records, ulong min_records, + HP_CREATE_INFO *create_info) { uint i, j, key_segs, max_length, length; HP_SHARE *share; @@ -120,6 +121,9 @@ int heap_create(const char *name, uint keys, HP_KEYDEF *keydef, share->keys= keys; share->max_key_length= max_length; share->changed= 0; + share->auto_key= create_info->auto_key; + share->auto_key_type= create_info->auto_key_type; + share->auto_increment= create_info->auto_increment; if (!(share->name= my_strdup(name,MYF(0)))) { my_free((gptr) share,MYF(0)); |