From: Sergio Lob <sergio_lob@iwaysoftware.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #1523: precision column value returned from getTypeInfo() always has value 9
Date: Thu, 3 Mar 2005 21:24:19 +0000 (GMT)
Message-ID: <20050303212419.7046AF0D94@svr2.postgresql.org> (raw)
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.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: sergio_lob@iwaysoftware.com, pgsql-bugs@postgresql.org
Subject: Re: BUG #1523: precision column value returned from getTypeInfo() always has value 9
In-Reply-To: <20050303212419.7046AF0D94@svr2.postgresql.org>
References: <20050303212419.7046AF0D94@svr2.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox