Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable - Mailing list pgsql-hackers

From Alex Goncharov
Subject Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Date
Msg-id E1RBuSa-0002XK-7v@hanssachs.home
Whole thread Raw
In response to Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
List pgsql-hackers
,--- I/Alex (Thu, 06 Oct 2011 14:02:14 -0400) ----*
| My understanding is that libpq does not allow one to find if a result
| set column is nullable.
,--- You/Merlin (Thu, 6 Oct 2011 15:16:18 -0500) ----*
| why aren't you using PQgetisnull()?

This function is not about the nullability of a column but rather
about the value in a result set cell:
 PQgetisnull: Tests a field for a null value.      int PQgetisnull(const PGresult *res, int row_number, int
column_number);

Notice the 'row_number'.     

-- Alex -- alex-goncharov@comcast.net --


pgsql-hackers by date:

Previous
From: Thom Brown
Date:
Subject: Re: index-only scans
Next
From: Merlin Moncure
Date:
Subject: Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable