Re: PQgetResult() and NULL

From: bradg <bg4all(at)me(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: Re: PQgetResult() and NULL
Date: 2016-03-12 04:16:06
Message-ID: 1457756166474-5892370.post@n5.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Lawrence Wetsel 2016-03-14 17:42:50 Good afternoon
Previous Message bradg 2016-03-11 14:53:00 PQgetResult() and NULL