Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL, transactions, loss of connection 1

Status
Not open for further replies.

sleipnir214

Programmer
May 6, 2002
15,350
US
Can anyone point me to authoritative documentation on MySQL's behavior when a connection breaks during a transaction?
 
Can someone give me a link or a reference that actually answers my question?
 
I thought I was rather close, still if you search Mysql.com you may find more cloesly related material, but your question was a bit vague, error codes can be searched for far more easily and google tends to show them quite well. ***************************************
Party on, dudes!
[cannon]
 
It was close, except that it doesn't get around to answering the core question: What is MySQL's behavior is when a connection fails during a transaction?

Here's the specific hypothetical: I have begun a block of statements with BEGIN. I have completed three of the five UPDATE statements I intended to perform when my connection to the server is severed. I never issue the COMMIT statement.

I assume that MySQL would rollback my transaction -- that's that I would have it do if I were writing it. But for purposes of project documentation, I need an authoritative source which definitively states MySQL will rollback or commit the transaction.
 
Ok heres a few that get close,
and how to not use commit or rollback

if you rummage around there some more you may find exactly the wording you are looking for.
Hope this shaves a few months off digging through their site. ***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top