From: Warren Young Date: January 16 2013 12:44am Subject: Re: MySQL++ Query Loop : Commands Out of Sync? List-Archive: http://lists.mysql.com/plusplus/9547 Message-Id: <50F5F7DA.10208@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 1/15/2013 15:28, Warren Young wrote: > On 1/15/2013 14:23, Jordan Hewitt wrote: >> query.execute(); >> ... >> query.reset(); >> ... >> while(query.more_results()) Forgot to mention one thing: I cut your code up this way because even if it turns out you *are* using template multiqueries, so you *do* need to reset the query and call more_results(), you'd want to reset the Query object *after* you finish consuming all the results. Query::reset() is the last thing you call before you go and use the Query object for something else entirely, if it's needed at all.