From: Matthew B. <ma...@by...> - 2002-06-30 20:51:44
|
Hello: using Ruby 1.6.7 with mysql-ruby 2.4.2a and ruby-dbi 0.14, am I safe trying to use the same database handle from multiple Ruby threads? Only I'm getting a "Commands out of sync error" from MySQL, detailed here: http://www.mysql.com/doc/C/o/Commands_out_of_sync.html and wondered whether particular sequences of commands etc. would be unsafe. For instance if I use a select_all statement with a supplied block, can I still issue further queries inside the block? Will delve into the source tonight, but I assume this is a bug, or at least there is some undocumented 'unsafe' use of the mysql module? cheers, -- Matthew Bloch Bytemark Computer Consulting http://www.bytemark.co.uk/ tel. +44 (0) 8707 455026 |