Re: isNullable()

From: Rene Pijlman <rene(at)lab(dot)applinet(dot)nl>
To: pgsql-patches(at)postgresql(dot)org
Cc: <pgsql-jdbc(at)postgresql(dot)org>, Tomis³aw Kityñski <cromax(at)id(dot)pl>
Subject: Re: isNullable()
Date: 2001-09-15 19:43:58
Message-ID: 1ib7qtk0jufjb5ekbulctfipg61v92g47s@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc pgsql-patches

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(at)lab(dot)applinet(dot)nl>

Attachment Content-Type Size
isNullable.diff text/plain 3.2 KB

In response to

  • isNullable() at 2001-09-14 15:53:50 from Tomisław Kityński

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Tom Lane 2001-09-16 05:12:23 Re: [JDBC] NULLs and sort order
Previous Message Rene Pijlman 2001-09-15 13:42:41 Re: isNullable()

Browse pgsql-patches by date

  From Date Subject
Next Message Serguei Mokhov 2001-09-15 23:34:10 PSQL NLS Support (Russian)
Previous Message Rene Pijlman 2001-09-15 13:42:41 Re: isNullable()