MySQL Forums
Forum List  »  Ruby

Re: multiple statements error
Posted by: John Costantino
Date: January 29, 2009 01:35PM

After you've finished with your query, try this while loop. The variable "conn" is your connection.

my_results = conn.query(statement1)
my_results.each do |rr|
. . .
end

while (conn.next_result && conn.more_results?)
conn.store_result
end

. . .

my_results = conn.query(statement2)

Options: ReplyQuote


Subject
Written By
Posted
August 11, 2008 09:13AM
December 24, 2008 09:33PM
Re: multiple statements error
January 29, 2009 01:35PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.