Hi,
While reading the code, the PGSet->MoveNext() definition seems to have a
small bug.
Since the PGSet->EOF() is defined as
bool Eof() const { return (!nRows || pos > nRows); }
I think it doesn't make sense to define PGSet->MoveNext() as
void MoveNext() { if (pos <= nRows) pos++; }
It should rather be
void MoveNext() { if (pos < nRows) pos++; }
The attached patch does the same.
Regards,
*Robins Tharakan*