On Saturday, February 22, 2014 8:23:14 PM CEST, Stephen R. van den Berg wrote:
So a sequence like:
   Query*q;
   q = new Query(...);
   q->execute();
   q = new Query(...);
   q->execute();

Is fine?

Yes. The memory will be freed once the next garbage collection occurs.

And, one quick other question:
If I want to know how many rows have been deleted by a query statement,
is that to be found in q->rows() after q->done() returns true?

Yes.

Arnt

Reply via email to