BUG #1523: precision column value returned from getTypeInfo() always has value 9

From: "Sergio Lob" <sergio_lob(at)iwaysoftware(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #1523: precision column value returned from getTypeInfo() always has value 9
Date: 2005-03-03 21:24:19
Message-ID: 20050303212419.7046AF0D94@svr2.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc


The following bug has been logged online:

Bug reference: 1523
Logged by: Sergio Lob
Email address: sergio_lob(at)iwaysoftware(dot)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.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Oliver Jowett 2005-03-04 02:07:35 Re: BUG #1523: precision column value returned from getTypeInfo()
Previous Message DIEGO URRA 2005-03-03 19:15:27 BUG #1522: there's a syntax error using psql, distinct

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2005-03-04 02:07:35 Re: BUG #1523: precision column value returned from getTypeInfo()
Previous Message Dave Cramer 2005-03-03 12:19:39 Re: lock problem when dont commit