Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
Thread:
Lists: pgsql-jdbcpgsql-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: isNullable.diff
Description: text/plain (3.2 KB)

In response to

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

Responses

pgsql-patches by date

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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group