On Fri, Mar 30, 2012 at 7:04 PM, Marko Kreen <[email protected]> wrote: > Have you looked at the examples? PQgetResult() is pretty good hint > that one resultset finished...
Ok, the demos are around this long thread and hard to find, so here is a summary of links: Original design mail: http://archives.postgresql.org/message-id/[email protected] First patch with quick demos: http://archives.postgresql.org/message-id/[email protected] Demos as diff: http://archives.postgresql.org/message-id/[email protected] Demos/experiments/tests (bit messier than the demos-as-diffs): https://github.com/markokr/libpq-rowproc-demos Note - the point is that user *must* call PQgetResult() when resultset ends. Thus also the "PQgetRow() does not return errors" decision. I'll put this mail into commitfest page too, seems I've forgotten to put some mails there. -- marko -- Sent via pgsql-hackers mailing list ([email protected]) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers
