From: dmp <danap@ttc-cmc.net>
To: Kris Jurka <books@ejurka.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains
Date: Sat, 23 Oct 2010 09:30:34 -0600
Message-ID: <4CC2FF9A.6000300@ttc-cmc.net> (raw)
In-Reply-To: <alpine.BSO.2.00.1010230331180.30080@leary.csoft.net>
References: <i9pdb3$6t5$1@dough.gmane.org>
<i9q79p$sp1$1@dough.gmane.org>
<4CC0E810.7010406@ttc-cmc.net>
<alpine.BSO.2.00.1010230331180.30080@leary.csoft.net>
> On Thu, 21 Oct 2010, dmp wrote:
>
>> The early attached file query for the column's information was from
>> the information_schema.columns table and does show the correct result
>> for the
>> salary field IS_NULLABLE.
>>
>
> Kris Jurka wrote:
> Thanks for the hint. Doing the same thing that the information_schema
> does was pretty easy. I've fixed this in CVS and I've also adjusted
> ResultSetMetaData.isNullable to have the same behavior. I've backpatched
> this to 8.4 because that's as far as was easy.
>
> Here's a jar you can test with:
>
> http://ejurka.com/pgsql/jars/domnn/
>
> Kris Jurka
>
When I looked at the code and obtained the sql that was used to get the
columns IS_NULLABLE it was clear the difference in the methods that the
JDBC and I used in my project to create table definitions. At that time
I was advised either here or in the general forum to use the Information_schema.
That way it was indicated that the table definition
generation would suffer less from internal database table changes. I
do not know if this is valid for the JDBC, but this is why I sent along
that last piece of information. MyJSQLView though limited was generating
the correct column default result for the salary field.
I will update my local copy and take a look at your changes.
danap.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: danap@ttc-cmc.net, books@ejurka.com
Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains
In-Reply-To: <4CC2FF9A.6000300@ttc-cmc.net>
References: <i9pdb3$6t5$1@dough.gmane.org> <i9q79p$sp1$1@dough.gmane.org> <4CC0E810.7010406@ttc-cmc.net> <alpine.BSO.2.00.1010230331180.30080@leary.csoft.net> <4CC2FF9A.6000300@ttc-cmc.net>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox