X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A35939F9FE3 for ; Thu, 22 Jun 2006 12:19:31 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 97239-01 for ; Thu, 22 Jun 2006 12:19:21 -0300 (ADT) X-Greylist: delayed 00:20:21.066667 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 1C7BA9FA60B for ; Thu, 22 Jun 2006 12:19:20 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from bossdev.kiev.ua (bossdev.kiev.ua [212.42.94.42]) by svr4.postgresql.org (Postfix) with ESMTP id 0D1415AF056 for ; Thu, 22 Jun 2006 14:59:06 +0000 (GMT) Received: from polar.bossdev.com.ua ([192.168.20.58] helo=polar) by bossdev.kiev.ua with smtp (Exim 4.62) (envelope-from ) id 1FtQe5-0002q2-1w for pgsql-jdbc@postgresql.org; Thu, 22 Jun 2006 17:59:01 +0300 Message-ID: <032401c6960c$66ad1170$3a14a8c0@bossdev.com.ua> Reply-To: "Sergii Sinelnychenko" From: "Sergii Sinelnychenko" To: "Postgres-JDBC" Subject: ResultSetMetaData + CachedResultSet bug Date: Thu, 22 Jun 2006 17:59:03 +0300 Organization: BOSSdev, Inc. MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="koi8-r"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/91 X-Sequence-Number: 15371 Hello everybody! Today I have found a strange bug in JDBC driver (I used the last version avilable - 8.2dev-503). The problem is with VARCHAR fields - driver returns "-1" on "getPrecision()" call. But class javax.sql.rowset.RowSetMetaDataImpl in its "setPrecision()" method requires values of 0 and more (javadoc sais "precision the total number of decimal digits; must be 0 or more "). I understand that in case of VARCHAR type we cannot speak about real number of decimal digits - but could just driver return 0 instead of -1? Please advise. Thanks in advance for answer. --- WBR, Sergii Sinelnychenko Senior Java Developer, Project Manager e: SSinelnychenko@bossdev.com w: www.bossdev.com