Re: isNullable() - Mailing list pgsql-jdbc

From Rene Pijlman
Subject Re: isNullable()
Date
Msg-id 1ib7qtk0jufjb5ekbulctfipg61v92g47s@4ax.com
Whole thread Raw
In response to isNullable()  (Tomisław Kityński <cromax@id.pl>)
Responses Re: isNullable()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: isNullable()  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-jdbc
Attached is a patch that fixes ResultSetMetaData.isNullable() in
the JDBC driver.

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.

The patch simply changes the return value to
ResultSetMetaData.columnNullableUnknown. This is until someone
comes up with a real implementation of course.

On Fri, 14 Sep 2001 17:53:50 +0200, Tomisaw Kityñski wrote:
>Hello there,
>
>could someone tell me, please, do I have any chance to get
>proper implementation of above method in JDBC (1.1+) soon?
>
>Current "return 1" works fine on most tables, however it seems
>to be a little bit incorrect with some of them ;)


Regards,
René Pijlman <rene@lab.applinet.nl>

Attachment

pgsql-jdbc by date:

Previous
From: Rene Pijlman
Date:
Subject: Re: isNullable()
Next
From: Tom Lane
Date:
Subject: Re: [HACKERS] NULLs and sort order