MySQL: automatic rollback on transaction failure
Posted
by praksant
on Stack Overflow
See other posts from Stack Overflow
or by praksant
Published on 2010-05-10T21:16:05Z
Indexed on
2010/05/10
22:04 UTC
Read the original article
Hit count: 247
Is there any way to set MySQL to rollback any transaction on first error/warning automatically?
Now if everything goes well, it commits, but on failure it leaves transaction open and on another start of transaction it commits incomplete changes from failed transaction.
(I'm executing queries from php, but i don't want to check in php for failure, as it would make more calls between mysql server and webserver.)
Thank you
© Stack Overflow or respective owner