MySQL Forums
Forum List  »  InnoDB

Transactions/Rollbacks.
Posted by: Tyler Durden
Date: June 02, 2008 11:19AM

I'm trying to follow a tutorial on how to use transactions but they always seem to be permanent. Here's what I've done:
start transaction;
select * from accounts;
update accounts
set balance = (balance + 100)
where id = 3;
select * from accounts;
rollback;
select * from accounts;

Nothing gets rolled back though. When I do show table status; it shows accounts as a MyISAM table. I try doing alter table accounts ENGINE = InnoDB; but it still stays as MyISAM

Options: ReplyQuote


Subject
Views
Written By
Posted
Transactions/Rollbacks.
3169
June 02, 2008 11:19AM
1818
June 02, 2008 09:56PM
1940
June 03, 2008 03:53AM
1761
June 03, 2008 06:42AM


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.