pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter <peter@greatnowhere.com>
To: pgsql-jdbc@postgresql.org
Subject: numeric type
Date: Sun, 20 Jul 2008 13:32:51 +0300
Message-ID: <005b01c8ea53$f64a9fd0$e2dfdf70$@com> (raw)

For numeric types (with no explicit scale and precision) JDBC returns 0 for
both precision and scale (ResultSetMetaData.getPrecision and getScale
methods). This is breaking my app and IMO does not reflect true state of
things since Postgres docs state: "NUMERIC without any precision or scale
creates a column in which numeric values of any precision and scale can be
stored, up to the implementation limit on precision". 

 

Shouldn't PG JDBC driver return maximum possible values for precision and
scale in such cases? 

 

Peter

 

view thread (10+ messages)  latest in thread

Message-ID: <005b01c8ea53$f64a9fd0$e2dfdf70$@com>
Permalink:  ../005b01c8ea53$f64a9fd0$e2dfdf70$@com/
Also on:    postgresql.org/message-id/005b01c8ea53$f64a9fd0$e2dfdf70$@com

 · 

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: peter@greatnowhere.com
  Subject: Re: numeric type
  In-Reply-To: <005b01c8ea53$f64a9fd0$e2dfdf70$@com>
  References: <005b01c8ea53$f64a9fd0$e2dfdf70$@com>

* 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