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
------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to