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|
. . .

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

. . .

my_results = conn.query(statement2)

Options: ReplyQuote

Written By
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.