From: Kris Jurka <books@ejurka.com>
To: Dario V. Fassi <software@sistemat.com.ar>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec
Date: Fri, 9 Jul 2004 18:53:11 -0500 (EST)
Message-ID: <Pine.BSO.4.56.0407091852010.17806@leary.csoft.net> (raw)
In-Reply-To: <40E6076C.30105@sistemat.com.ar>
References: <40E6076C.30105@sistemat.com.ar>
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
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: books@ejurka.com, software@sistemat.com.ar
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec
In-Reply-To: <Pine.BSO.4.56.0407091852010.17806@leary.csoft.net>
References: <40E6076C.30105@sistemat.com.ar> <Pine.BSO.4.56.0407091852010.17806@leary.csoft.net>
* 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