Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Update and delete in same transaction fails. (2 replies)

$
0
0
EDIT: Disregard this message, the lock was caused by my mistake. The "non"-problem has been solved.

Hello,

I'm having this problem:

I've started a transaction that does varius update and delete to a couple of tables. Now, when I try to delete a row I've modified with a previuos update (all happens in the same transaction. No concurrent transactions going on, remember!) in the transaction I get the "Lock timeout exceeded, Try restarting transaction" error.

It all happens in a single transaction.

Is update and delete of the same row in the same transaction not allowed?

Forgot to say: mySQL version 5.0.37 (rather outdated but that's what I've to use...)

Thank you.

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>