Open snmsts opened 8 years ago
Really??
I executed the code above, and I executed UPDATE c SET x = 10 WHERE id = 1
via other MySQL console while sleeping 30 secs, then I got the behavior expected (The next UPDATE
query was waiting for the first transaction to finish.).
HI, I tried the following code. And what I expected with this code was while the sleeping period, the other update should be prohibited exclusively.
But, It doesn't work like expected. The update executed immediately.
What's wrong with this?