1 message in com.mysql.lists.plusplusOnly get one row on two.
FromSent OnAttachments
patham07 Aug 2000 10:49 
Subject:Only get one row on two.
From:patham (pat@brutele.be)
Date:08/07/2000 10:49:18 AM
List:com.mysql.lists.plusplus

Hi

Please excuse my bad english :)

I'm trying to use mysql++ to access the records of my database but I encounter
one big problem : I only get the half of the records. I'm using the same technique as in the examples, (the iterator to access the
rows) but I use this piece of code :

...(connection and query) Result::iterator i; Row row; for (i = res.begin(); i != res.end; i++) { row = i*; if (bool(row)) cout << row[0] << " " << row[1] << endl; }; ...

If I use this :

...(connection and query) Result::iterator i; Row row; for (i = res.begin(); i != res.end; i++) { row = i*; cout << row[0] << " " << row[1] << endl; }; ...

I get segfaults because the very first row seems not to be valid. ( bool(row) =
false, i have checked ) Thus, only the second, the fourth, and so on... rows seem to be valid.

Any ideas ? Thanks