Received: from maia.hub.org (unknown [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id EDE821337B3E for ; Sat, 23 Oct 2010 12:31:07 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 29499-03 for ; Sat, 23 Oct 2010 15:30:56 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from outbound.vnet-inc.com (outbound.vnet-inc.com [216.146.104.103]) by mail.postgresql.org (Postfix) with ESMTP id 23FD71336705 for ; Sat, 23 Oct 2010 12:30:55 -0300 (ADT) Received: from [192.168.157.33] (te59.montanavision.com [216.220.28.59]) by outbound.vnet-inc.com (Postfix) with ESMTP id 301D25987; Sat, 23 Oct 2010 09:30:53 -0600 (MDT) Message-ID: <4CC2FF9A.6000300@ttc-cmc.net> Date: Sat, 23 Oct 2010 09:30:34 -0600 From: dmp User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.13) Gecko/20100914 SeaMonkey/2.0.8 MIME-Version: 1.0 To: Kris Jurka CC: pgsql-jdbc@postgresql.org Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains References: <4CC0E810.7010406@ttc-cmc.net> In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-10 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201010/147 X-Sequence-Number: 21115 > 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.