1152
# Test that update does not change internal auto-increment value
1155
create table t1 (a int not null auto_increment primary key, val int) engine=InnoDB;
1156
insert into t1 (val) values (1);
1157
update t1 set a=2 where a=1;
1158
# We should get the following error because InnoDB does not update the counter
1159
--error ER_DUP_ENTRY
1160
insert into t1 (val) values (1);