Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id A3A39633183 for ; Thu, 14 May 2009 06:10:50 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13408-07 for ; Thu, 14 May 2009 06:10:49 -0300 (ADT) Received: from mx3.hub.org (mx3.hub.org [206.223.169.73]) by mail.postgresql.org (Postfix) with ESMTP id 55D30632B99 for ; Thu, 14 May 2009 06:10:49 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from kuber.nabble.com (kuber.nabble.com [216.139.236.158]) by mx3.hub.org (Postfix) with ESMTP id 017BB37B403 for ; Thu, 14 May 2009 06:10:48 -0300 (ADT) Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1M4Wxh-0006a1-2N for pgsql-jdbc@postgresql.org; Thu, 14 May 2009 02:10:45 -0700 Message-ID: <23536933.post@talk.nabble.com> Date: Thu, 14 May 2009 02:10:45 -0700 (PDT) From: Tanel To: pgsql-jdbc@postgresql.org Subject: ResultSet getString() result differs in 8.3 jdbc (compared to 8.1), with "real" type MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tanel.ehrenpreis@finestmedia.ee X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200905/78 X-Sequence-Number: 19628 Hi, I made some searches also, however found nothing exactly related to this problem. We just shifted from using 8.1 driver to 8.3 however seems that 8.3 driver handles differently Postgresql floating type values, when using org.postgresql.jdbc2.AbstractJdbc2ResultSet.java getString() on them ? For example, when there is "real" type value 20.7 in database and we try to get it through getString() then old 8.1 driver returns nicely 20.7, but new 8.3 driver is returning something like 20.700001. As "real" is floating type value then presumably this long 20.700001 can indeed be how database is holding value 20.7 ? However when I was comparing 8.1 and 8.3 driver sources then no changes that could have caused it caught my eye... So my question would be that if such getString() behaviour is desired (?) (it is also in 8.4 driver), then can someone please give an hint where exactly can this behaviour be manipulated/turned off/etc... ? (NB! yes, the correct way would be to use getFloat() ofcourse) Regards, Tanel. -- View this message in context: http://www.nabble.com/ResultSet-getString%28%29-result-differs-in-8.3-jdbc-%28compared-to-8.1%29%2C-with-%22real%22-type-tp23536933p23536933.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.