Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id BA72664FD02 for ; Sun, 20 Jul 2008 07:41:20 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 70572-02 for ; Sun, 20 Jul 2008 07:41:10 -0300 (ADT) X-Greylist: delayed 00:06:05.543972 by SQLgrey-1.7.6 Received: from mail2.fintrading.com (mail.fintrading.com [195.2.100.100]) by postgresql.org (Postfix) with ESMTP id 139DE64FCBD for ; Sun, 20 Jul 2008 07:41:10 -0300 (ADT) Received: from chipmunk (unknown [81.198.70.254]) by mail2.fintrading.com (Postfix) with ESMTP id DD09B3811D60 for ; Sun, 20 Jul 2008 13:34:39 +0300 (EEST) From: "Peter" To: Subject: numeric type Date: Sun, 20 Jul 2008 13:32:51 +0300 Message-ID: <005b01c8ea53$f64a9fd0$e2dfdf70$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_005C_01C8EA6D.1B97D7D0" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcjqU/YMaSIxhmXKSYSDki7I+AJi8g== Content-Language: en-us X-greatnowhere.com-MailScanner: Found to be clean X-greatnowhere.com-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-4.899, required 6, BAYES_00 -5.00, HTML_MESSAGE 0.00, RDNS_NONE 0.10) X-greatnowhere.com-MailScanner-From: peter@greatnowhere.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200807/46 X-Sequence-Number: 18831 This is a multipart message in MIME format. ------=_NextPart_000_005C_01C8EA6D.1B97D7D0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 ------=_NextPart_000_005C_01C8EA6D.1B97D7D0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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

 

------=_NextPart_000_005C_01C8EA6D.1B97D7D0--