MySQL can't roll back as expected....
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.
Subject
Views
Written By
Posted
MySQL can't roll back as expected....
3156
July 17, 2010 01:27AM
1147
July 17, 2010 08:41AM
1184
July 17, 2010 08:32PM
998
August 04, 2010 08:18PM
1179
August 05, 2010 12:55AM
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.