Finally figured out the problem...
I declared the variable for the PGresult outside the loop that calls
PQgetResult() until NULL.
When I moved the declaration inside, everything works as expected.
--
View this message in context: http://postgresql.nabble.com/PQgetResult-and-NULL-tp5892227p5892370.html
Sent from the PostgreSQL - novice mailing list archive at Nabble.com.