Re: Error in DatabaseMetaData TableColumn lenght.dec

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: "Dario V(dot) Fassi" <software(at)sistemat(dot)com(dot)ar>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec
Date: 2004-07-10 17:07:06
Message-ID: 13576.1089479226@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris Jurka <books(at)ejurka(dot)com> writes:
> 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.

That doesn't sound like a usable answer at all. A client that believes
this result will think that the value cannot contain any digits to the
left of the decimal point --- which is certainly not so.

Does the JDBC spec allow you to return NULL for these entries? That's
what we recently fixed the information_schema views to do for
unconstrained numeric columns.

regards, tom lane

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dario V. Fassi 2004-07-10 17:20:22 Re: Timestamp Question
Previous Message Dave Cramer 2004-07-10 16:19:43 Re: Timestamp Question