ALTER TABLE table_name AUTO_INCREMENT does not rollback inserted entry
bhavyata9 opened this issue · comments
Bhavya Shah commented
Hi,
We have a test that executesALTER TABLE table_name AUTO_INCREMENT = 2
, and then inserts a row in table_name
. However, we find that the inserted row is still in the table_name
after the test is done. If we don't do the alter, then the entry gets deleted, but ofcourse, the ids are incremented.
We are using mysql.
Gediminas Morkevicius commented
Mysql does not support rolling back alter table. Read the api docs in mysql