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 7083556437 for ; Fri, 4 Mar 2005 03:06:54 +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 86581-05 for ; Fri, 4 Mar 2005 03:06:51 +0000 (GMT) Received: from mail63.csoft.net (leary3.csoft.net [63.111.22.74]) by svr1.postgresql.org (Postfix) with SMTP id 4AC5754EAA for ; Fri, 4 Mar 2005 03:06:50 +0000 (GMT) Received: (qmail 30795 invoked by uid 1112); 4 Mar 2005 03:06:54 -0000 Date: Thu, 3 Mar 2005 22:06:54 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Oliver Jowett Cc: Sergio Lob , pgsql-bugs@postgresql.org, pgsql-jdbc@postgresql.org Subject: Re: BUG #1523: precision column value returned from getTypeInfo() In-Reply-To: <4227C2E7.7030308@opencloud.com> Message-ID: References: <20050303212419.7046AF0D94@svr2.postgresql.org> <4227C2E7.7030308@opencloud.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.013 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/21 X-Sequence-Number: 11142 On Fri, 4 Mar 2005, Oliver Jowett 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? Compare the existing implementation of ResultSetMetaData.getPrecision. Kris Jurka