O
O
olegmar2013-11-20 10:47:14
MySQL
olegmar, 2013-11-20 10:47:14

What happens to a mysql transaction when a script terminates early?

Suppose the script fails and does not reach the commit, what happens to transaction requests - rollback or something else?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
E
egor_nullptr, 2013-11-20
@olegmar

rollback
http://dev.mysql.com/doc/refman/5.5/en/mysql-tips.html clause 4.5.1.6.4

S
script88, 2013-11-20
@script88

ROLLBACK only http://dev.mysql.com/doc/refman/5.5/en/commit.html

M
Masterme, 2013-11-20
@Masterme

How dumb do you have to be to ask this question?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question