diff options
Diffstat (limited to 'sql/ha_heap.cc')
-rw-r--r-- | sql/ha_heap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_heap.cc b/sql/ha_heap.cc index 28a7b5529c9..c8d0e5c1c18 100644 --- a/sql/ha_heap.cc +++ b/sql/ha_heap.cc @@ -531,8 +531,8 @@ int ha_heap::create(const char *name, TABLE *table_arg, mem_per_row); if (table_arg->found_next_number_field) { - keydef[table_arg->next_number_index].flag|= HA_AUTO_KEY; - found_real_auto_increment= table_arg->next_number_key_offset == 0; + keydef[share->next_number_index].flag|= HA_AUTO_KEY; + found_real_auto_increment= share->next_number_key_offset == 0; } HP_CREATE_INFO hp_create_info; hp_create_info.auto_key_type= auto_key_type; |