From: Dario V. Fassi <software@sistemat.com.ar>
To: Kris Jurka <books@ejurka.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec information
Date: Sat, 10 Jul 2004 14:25:21 -0300
Message-ID: <40F02681.2010209@sistemat.com.ar> (raw)
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>
Kris Jurka wrote:
>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
>
>
Kris,
A return value of numeric(1000,1000) , is far better than
numeric(65535,-65531) , but this mean a number with all the presicion in
the fractional part and is not very usefull.
Why not a more login value like "Numeric(100,50)" , yet oversized
but more appropiate.
Can you imagine a number with 1000 digit's presicion, it's impractical
and undisplayable.
Dario Fassi.
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: software@sistemat.com.ar, books@ejurka.com
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec information
In-Reply-To: <40F02681.2010209@sistemat.com.ar>
References: <40E6076C.30105@sistemat.com.ar> <Pine.BSO.4.56.0407091852010.17806@leary.csoft.net> <40F02681.2010209@sistemat.com.ar>
* 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