List:MySQL++« Previous MessageNext Message »
From:Warren Young Date:January 16 2013 12:44am
Subject:Re: MySQL++ Query Loop : Commands Out of Sync?
View as plain text  
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.
Thread
MySQL++ Query Loop : Commands Out of Sync?Jordan Hewitt15 Jan
  • Re: MySQL++ Query Loop : Commands Out of Sync?Warren Young15 Jan
    • Re: MySQL++ Query Loop : Commands Out of Sync?Warren Young16 Jan
  • Re: MySQL++ Query Loop : Commands Out of Sync?Martin Gallwey15 Jan
    • Re: MySQL++ Query Loop : Commands Out of Sync?Jordan Hewitt16 Jan