Re: getting out boolean value from PQgetValue function - Mailing list pgsql-hackers

From Tom Lane
Subject Re: getting out boolean value from PQgetValue function
Date
Msg-id 21754.1200170369@sss.pgh.pa.us
Whole thread Raw
In response to getting out boolean value from PQgetValue function  ("Arunachalam Parthasarathy" <arunachalamamsam@gmail.com>)
List pgsql-hackers
"Arunachalam Parthasarathy" <arunachalamamsam@gmail.com> writes:
> When i iterate over the result set, i am unable to get the return boolean
> value in my code. The ptr returned by PQGetValue is valid, but contains
> nothing. why is it so?

Did you check PQgetisnull()?  IIRC PQgetvalue() will return a
zero-length string for a null field.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: A note about SIGTERM illusion and reality
Next
From: Tom Lane
Date:
Subject: Re: Transaction Snapshot Cloning