Received: from maia.hub.org (unknown [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 461091337B71 for ; Sat, 23 Oct 2010 04:37:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 05415-09 for ; Sat, 23 Oct 2010 07:37:28 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by mail.postgresql.org (Postfix) with ESMTP id A0E1F133729E for ; Sat, 23 Oct 2010 04:37:28 -0300 (ADT) Received: from mail63.csoft.net (localhost [127.0.0.1]) by mail63.csoft.net (Postfix) with ESMTP id B278F28408; Sat, 23 Oct 2010 03:37:27 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=csoft.net; h=date:from:to :cc:subject:in-reply-to:message-id:references:mime-version :content-type; s=sel1; bh=UsXbq+w2pQ3Hgf3wlNSoR+Ftc24=; b=JOGGpa h7YDvQ36uhy9808X0clBiscXtW7dHy112XLf6w1HG7AJxvkUOX0uXzVMVCLQeudA kdTIcSRGLfpYu3mwAV9NIazpf0PHFCtAIc4c8qf0r16zxKRR92ipE0XE4FxZnK7o myB29EqcBtMIYHHjAQUv62YIY0xdEnqs/UkEk= Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail63.csoft.net (Postfix) with ESMTP id 6F77728403; Sat, 23 Oct 2010 03:37:27 -0400 (EDT) Received: by leary.csoft.net (Postfix, from userid 1112) id 27527A860; Sat, 23 Oct 2010 03:37:27 -0400 (EDT) Date: Sat, 23 Oct 2010 03:37:26 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: dmp cc: Thomas Kellerer , pgsql-jdbc@postgresql.org Subject: Re: Bug in DatabaseMetaData.getColumns() with columns based on domains In-Reply-To: <4CC0E810.7010406@ttc-cmc.net> Message-ID: References: <4CC0E810.7010406@ttc-cmc.net> User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII 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/144 X-Sequence-Number: 21112 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. > 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