Received: from maia.hub.org (unknown [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 2C37C1337B69 for ; Sat, 23 Oct 2010 12:50:10 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 47483-04 for ; Sat, 23 Oct 2010 15:50:02 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id 6148E1337B54 for ; Sat, 23 Oct 2010 12:50:02 -0300 (ADT) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1P9gLz-0000Uu-RF for pgsql-jdbc@postgresql.org; Sat, 23 Oct 2010 17:49:55 +0200 Received: from ppp-188-174-101-252.dynamic.mnet-online.de ([188.174.101.252]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Oct 2010 17:49:55 +0200 Received: from spam_eater by ppp-188-174-101-252.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 23 Oct 2010 17:49:55 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains Date: Sat, 23 Oct 2010 17:49:45 +0200 Lines: 20 Message-ID: References: <4CC0E810.7010406@ttc-cmc.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: ppp-188-174-101-252.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-10 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201010/148 X-Sequence-Number: 21116 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