From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains
Date: Sat, 23 Oct 2010 17:49:45 +0200
Message-ID: <i9v06o$gk$1@dough.gmane.org> (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>
Kris Jurka wrote on 23.10.2010 09:37:
> 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/
>
Thanks for the quick reaction. I didn't expect this to be a client-side only problem (including psql ;)
With my little example, the nullable attribute is displayed correctly with your version of the driver.
Could you also look into the values reported for the TYPE_NAME in getColumns() for domains?
I posted a bug reported that the domain's name is not fully qualified so that it's impossible to distinguish between the same domains in different schemas...
Regards
Thomas
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: spam_eater@gmx.net
Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains
In-Reply-To: <i9v06o$gk$1@dough.gmane.org>
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> <i9v06o$gk$1@dough.gmane.org>
* 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