Re: Error in DatabaseMetaData TableColumn lenght.dec

From: Kris Jurka <books(at)ejurka(dot)com>
To: "Dario V(dot) Fassi" <software(at)sistemat(dot)com(dot)ar>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec
Date: 2004-07-09 23:53:11
Message-ID: Pine.BSO.4.56.0407091852010.17806@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-07-09 23:55:07 Re: ResultSerMetaData.getColumnDisplaySize() with timestamp
Previous Message Dave Cramer 2004-07-09 23:47:29 Re: patch for getXXX methods