X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9690352A4D; Fri, 4 Mar 2005 02:14:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 91446-09; Fri, 4 Mar 2005 02:14:15 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id AADE652A71; Fri, 4 Mar 2005 02:14:13 +0000 (GMT) Received: from flood.opencloud.co.nz ([192.168.0.31]) by yass.opencloud.co.nz with esmtp (Exim 3.35 #1 (Debian)) id 1D72E7-0006A1-00; Fri, 04 Mar 2005 15:07:39 +1300 Message-ID: <4227C2E7.7030308@opencloud.com> Date: Fri, 04 Mar 2005 15:07:35 +1300 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Sergio Lob Cc: pgsql-bugs@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: BUG #1523: precision column value returned from getTypeInfo() References: <20050303212419.7046AF0D94@svr2.postgresql.org> In-Reply-To: <20050303212419.7046AF0D94@svr2.postgresql.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/20 X-Sequence-Number: 11141 (cc'ing -jdbc) Sergio Lob wrote: > After calling Connection.DatabaseMetaData.getTypeInfo() method, the > PRECISION column of the ResultSet seems hardcoded to value 9, which of > course in incorrect Well, it's working as intended in the sense that there is no code to support retrieving a real precision value -- it is indeed a hardcoded placeholder value. I'm not sure why '9' off the top of my head, perhaps making that column NULL would be better? What are the units of this value anyway? If you're willing to do the implementation work to improve this, then post a patch to pgsql-jdbc and I can look at applying it. -O