DATA-DOG / go-txdb

Immutable transaction isolated sql driver for golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ALTER TABLE table_name AUTO_INCREMENT does not rollback inserted entry

bhavyata9 opened this issue · comments

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.

Mysql does not support rolling back alter table. Read the api docs in mysql