diff options
author | unknown <monty@hundin.mysql.fi> | 2001-08-26 23:24:48 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2001-08-26 23:24:48 +0300 |
commit | 30774b35493d3ad14ee40b73d4b9ffff51dd6cd1 (patch) | |
tree | 7df1f3b7860b5ebb86cad40aa765d858dcbe716b /sql/ha_innobase.cc | |
parent | 0733b85d75c560cc2e9cca84e490a4ccde5a945a (diff) | |
download | mariadb-git-30774b35493d3ad14ee40b73d4b9ffff51dd6cd1.tar.gz |
Fixed bug in auto-increment handling with InnoDB
Some small speedups
Docs/manual.texi:
Changelog
client/mysqldump.c:
Fixed quoting problem for table names when using --opt
mysys/mf_casecnv.c:
Speed up some common string functions
sql-bench/test-insert.sh:
Small changes that shouldn't affect results
sql-bench/test-select.sh:
Small changes that shouldn't affect results
sql/field.h:
Added reset() functions to speed up some common things
sql/gen_lex_hash.cc:
Smaller hash table
sql/ha_innobase.cc:
Fixed bug in auto-increment handling with InnoDB
Diffstat (limited to 'sql/ha_innobase.cc')
-rw-r--r-- | sql/ha_innobase.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/ha_innobase.cc b/sql/ha_innobase.cc index fdbc0b107f5..061371eb5d4 100644 --- a/sql/ha_innobase.cc +++ b/sql/ha_innobase.cc @@ -1334,6 +1334,8 @@ ha_innobase::write_row( autoincrement field */ auto_inc = table->next_number_field->val_int(); + if (auto_inc == 0) + auto_inc= user_thd->next_insert_id; if (auto_inc != 0) { /* This call will calculate the max of the |