MySQL Forums
Forum List  »  InnoDB

MySQL can't roll back as expected....
Posted by: sleepy wang
Date: July 17, 2010 01:27AM

Working on the MySQL server 5.0.18. And writing a batch SQL file with a transaction as below:


use mydb;

delimiter //
SET autocommit=0;

start transaction;

update test set name='another';

rollback;
show warnings ;
select * from test;

delimiter ;

But warning code "1196" is printed when the rollback is called and the table data is updated without rollback.

Is it the right way to use MySQL transaction? or is there any other configuration i need to take care?

Thx in adv.

Options: ReplyQuote


Subject
Views
Written By
Posted
MySQL can't roll back as expected....
3156
July 17, 2010 01:27AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.