|
From: William D. <das...@gm...> - 2011-02-23 04:03:40
|
The following code segment produces unexpected results when extracting
data from a postgres SELECT query
rowset<row>::const_iterator i = rs.begin();
for (i=rs.begin(); i != rs.end(); ++i)
{
// do something
}
The calls to rs.begin() increment the row counter in backend fetch for
each call. The first begin returns the first row, the subsequent begin call
increments the row counter and returns the next row, not the first row.
William
|