diff --git a/mysql-test/r/innodb.result b/mysql-test/r/innodb.result index c9ae4170238..4224db7c072 100644 --- a/mysql-test/r/innodb.result +++ b/mysql-test/r/innodb.result @@ -455,7 +455,7 @@ Duplicate entry 'test2' for key 2 select * from t1; id ggid email passwd 1 this will work -4 test2 this will work +3 test2 this will work select * from t1 where id=1; id ggid email passwd 1 this will work diff --git a/sql/ha_innodb.cc b/sql/ha_innodb.cc index 13c83d48471..7b8afe7b8fe 100644 --- a/sql/ha_innodb.cc +++ b/sql/ha_innodb.cc @@ -1669,7 +1669,7 @@ ha_innobase::write_row( introduced only in version 4.0.4 */ if (incremented_auto_inc_counter) { - dict_autoinc_decrement(prebuilt->table); + dict_table_autoinc_decrement(prebuilt->table); } if (incremented_auto_inc_for_stat) {