Re: Problem asking columns allowing NULL values - Mailing list pgsql-jdbc

From Peter Royal
Subject Re: Problem asking columns allowing NULL values
Date
Msg-id 4C476444-6B8E-11D7-9D38-000393B61B56@pace2020.com
Whole thread Raw
In response to Re: Problem asking columns allowing NULL values  (. <alzina@inicia.es>)
List pgsql-jdbc
On Thursday, April 10, 2003, at 03:13  PM, . wrote:
> "This method is currently unimplemented and always returns
> ResultSetMetaData.columnNullable. This is obviously incorrect
> when a column is defined with NOT NULL or PRIMARY KEY. And we
> have to think of check constraints, views, functions etc.
>
> This patch simply changes the return value to
> ResultSetMetaData.columnNullableUnknown. This is until someone
> comes up with a real implementation of course."
>
> I'll apreciate if somebody could tell me if someone are working on
> this. If
> not, well, I'm not a Java guru, but perhaps I could help.

If you need a solution today, I recommend using the DatabaseMetaData to
get information on the table, it will properly tell you about column
nullability.
-pete


pgsql-jdbc by date:

Previous
From: .
Date:
Subject: Re: Problem asking columns allowing NULL values
Next
From: Pedro Salazar
Date:
Subject: error getString() --> decodeUTF8 / java.lang.ArrayIndexOutOfBoundsException: 5