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 74D6254507 for ; Thu, 3 Mar 2005 21:27:02 +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 00265-10 for ; Thu, 3 Mar 2005 21:27:01 +0000 (GMT) Received: from svr2.postgresql.org (unknown [65.19.161.25]) by svr1.postgresql.org (Postfix) with ESMTP id 5C2E552A86 for ; Thu, 3 Mar 2005 21:27:01 +0000 (GMT) Received: by svr2.postgresql.org (Postfix, from userid 80) id 7046AF0D94; Thu, 3 Mar 2005 21:24:19 +0000 (GMT) To: pgsql-bugs@postgresql.org Subject: BUG #1523: precision column value returned from getTypeInfo() always has value 9 From: "Sergio Lob" Message-Id: <20050303212419.7046AF0D94@svr2.postgresql.org> Date: Thu, 3 Mar 2005 21:24:19 +0000 (GMT) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/19 X-Sequence-Number: 11140 The following bug has been logged online: Bug reference: 1523 Logged by: Sergio Lob Email address: sergio_lob@iwaysoftware.com PostgreSQL version: 8.0.1 Operating system: linux Description: precision column value returned from getTypeInfo() always has value 9 Details: After calling Connection.DatabaseMetaData.getTypeInfo() method, the PRECISION column of the ResultSet seems hardcoded to value 9, which of course in incorrect To repro: 1. connect to a PostgresSQL JDBC data source 2. Invoke Connection.getMetaData() on that connection to get DatabaseMetaData object 3. Invoke DataBaseMetaData.getTypeInfo() to get ResultSet of all supported data types 4. Invoke ResultSet.next() to get to first row 5. Invoke ResultSet.getString(3) to get PRECISION column value for current row. Notice that no matter what row is checked in the answer set, precision of data type is ALWAYS 9.