mysql gem reporting deadlock

A

Andrew Arrow

I posted this message on the mysql forum:

http://forums.mysql.com/read.php?97,167771,167771

and the ruby code in question uses the mysql-2.7 gem directly. Not
using active record.

When the deadlock occurs it takes about 2 mins and times out with an
error.

But if the run the same SQL in mysql console with two sessions, I get a
deadlock error right away.

Is there a way to make the ruby mysql gem return the deadlock error
without the 2 min wait?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top