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

From Merlin Moncure
Subject Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Date
Msg-id CAHyXU0yvk4vSL8rDRJvvY8rJQZMwxhkO5k3_QfnAzsuC4iARsg@mail.gmail.com
Whole thread Raw
In response to libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable  (Alex Goncharov <alex-goncharov@comcast.net>)
Responses Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
List pgsql-hackers
On Thu, Oct 6, 2011 at 1:02 PM, Alex Goncharov
<alex-goncharov@comcast.net> wrote:
> My understanding is that libpq does not allow one to find if a result
> set column is nullable.
>
> Is this right?
>
> (I know how to get a table column nullability information from
> pg_attribute.attnotnull, but when coding around the libpq API:
>
>  * Is, OMG, ugly.
>
>  * Doesn't cover the arbitrary SELECT statements.

why aren't you using PQgetisnull()?

merlin


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: [REVIEW] Patch for cursor calling with named parameters
Next
From: Thom Brown
Date:
Subject: Re: index-only scans