X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 39C2FD1B184 for ; Sat, 10 Jul 2004 14:07:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75360-07 for ; Sat, 10 Jul 2004 17:07:09 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id F012CD1B181 for ; Sat, 10 Jul 2004 14:07:07 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.11/8.12.11) with ESMTP id i6AH761S013577; Sat, 10 Jul 2004 13:07:06 -0400 (EDT) To: Kris Jurka Cc: "Dario V. Fassi" , pgsql-jdbc@postgresql.org Subject: Re: Error in DatabaseMetaData TableColumn lenght.dec In-reply-to: References: <40E6076C.30105@sistemat.com.ar> Comments: In-reply-to Kris Jurka message dated "Fri, 09 Jul 2004 18:53:11 -0500" Date: Sat, 10 Jul 2004 13:07:06 -0400 Message-ID: <13576.1089479226@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200407/85 X-Sequence-Number: 10469 Kris Jurka 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