Append "mysql_client_multi_results=1" to your DSN, like this:

@dbh =
DBI.connect("DBI:Mysql:database=mydatabase;host=localhost;mysql_client_multi_results=1",
"root", "password")

Attachments:
http://www.ruby-forum.com/attachment/332/client_multi_results.patch

-- 
Posted via http://www.ruby-forum.com/.