Re: Error in DatabaseMetaData TableColumn lenght.dec - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Error in DatabaseMetaData TableColumn lenght.dec
Date
Msg-id Pine.BSO.4.56.0407091852010.17806@leary.csoft.net
Whole thread Raw
In response to Error in DatabaseMetaData TableColumn lenght.dec information  ("Dario V. Fassi" <software@sistemat.com.ar>)
Responses Re: Error in DatabaseMetaData TableColumn lenght.dec
Re: Error in DatabaseMetaData TableColumn lenght.dec information
List pgsql-jdbc

On Fri, 2 Jul 2004, Dario V. Fassi wrote:

> Hi, I whish to report a erroneous information returned by
> DatabaseMetaData.getColumns()  method.
>
> Suppose
>
> CREATE TABLE A (  f1 DEC(6,3), f2 dec(6,3) );
> CREATE VIEW B as ( select ( f1 + f2 ) as f from a;
>
> Then DatabaseMetaData.getColumns() returns:
>
> VIEW B
>     F   NUMERIC(  65535 ,  -65531 )
>

I've modified the cvs version of the driver to return numeric(1000,1000)
which is the maximum precision and scale you are allowed to define.  A
more complete solution is outside the realm of the JDBC driver.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: patch for getXXX methods
Next
From: Kris Jurka
Date:
Subject: Re: ResultSerMetaData.getColumnDisplaySize() with timestamp