Re: PQgetResult() and NULL - Mailing list pgsql-novice

From bradg
Subject Re: PQgetResult() and NULL
Date
Msg-id 1457756166474-5892370.post@n5.nabble.com
Whole thread Raw
In response to PQgetResult() and NULL  (bradg <bg4all@me.com>)
List pgsql-novice
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.


pgsql-novice by date:

Previous
From: bradg
Date:
Subject: PQgetResult() and NULL
Next
From: Lawrence Wetsel
Date:
Subject: Good afternoon