Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable

From: Alex Goncharov <alex-goncharov(at)comcast(dot)net>
To: Merlin Moncure <mmoncure(at)gmail(dot)com>
Cc: alex-goncharov(at)comcast(dot)net, pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Date: 2011-10-06 20:22:28
Message-ID: E1RBuSa-0002XK-7v@hanssachs.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)comcast(dot)net --

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Merlin Moncure 2011-10-06 20:38:59 Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Previous Message Thom Brown 2011-10-06 20:18:26 Re: index-only scans