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

From: Alex Goncharov <alex-goncharov(at)comcast(dot)net>
To: "anarazel(at)anarazel(dot)de" <andres(at)anarazel(dot)de>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Date: 2011-10-07 01:05:55
Message-ID: E1RByst-000DR6-8H@hanssachs.home
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

,--- You/anarazel(at)anarazel(dot)de (Fri, 07 Oct 2011 02:54:39 +0200) ----*
|
| > Given a SELECT (or possibly, simpler, a table name), tell me which
| > columns are non-nullable?
| That doesnt explain why it's needed.

It's needed for some meta analysis. That's as much as I can say.

| To get community buyin into a feature the community - or at least
| parts of it - need to understand why its needed.

Take a look at these APIs:

http://download.oracle.com/javase/6/docs/api/java/sql/ResultSetMetaData.html#isNullable(int)

int isNullable(int column) throws SQLException
Indicates the nullability of values in the designated column.

http://msdn.microsoft.com/en-us/library/ms716289(v=VS.85).aspx

NullablePtr [Output] Pointer to a buffer in which to return a
value that indicates whether the column allows NULL values.

A common and natural question to be answered about result sets.

-- Alex -- alex-goncharov(at)comcast(dot)net --

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Pflug 2011-10-07 01:21:23 Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable
Previous Message anarazel@anarazel.de 2011-10-07 00:54:39 Re: libpq, PQdescribePrepared -> PQftype, PQfmod, no PQnullable