pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Dario V. Fassi <software@sistemat.com.ar>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec
Date: Sat, 10 Jul 2004 13:07:06 -0400
Message-ID: <13576.1089479226@sss.pgh.pa.us> (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 <books@ejurka.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



view thread (5+ messages)  latest in thread

Message-ID: <13576.1089479226@sss.pgh.pa.us>
Permalink:  ../13576.1089479226@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/13576.1089479226@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, books@ejurka.com, software@sistemat.com.ar
  Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec
  In-Reply-To: <13576.1089479226@sss.pgh.pa.us>
  References: <40E6076C.30105@sistemat.com.ar> <Pine.BSO.4.56.0407091852010.17806@leary.csoft.net> <13576.1089479226@sss.pgh.pa.us>

* 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