Received: from maia.hub.org (maia-4.hub.org [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 867656329E5 for ; Tue, 27 Apr 2010 21:04:21 -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 61418-07 for ; Wed, 28 Apr 2010 00:04:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id F1C1A632971 for ; Tue, 27 Apr 2010 21:04:10 -0300 (ADT) Received: from 121-98-80-66.bitstream.orcon.net.nz ([121.98.80.66] helo=[192.168.1.2]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1O6ul4-0000iY-Hh; Wed, 28 Apr 2010 12:04:06 +1200 Message-ID: <4BD77B70.40603@opencloud.com> Date: Wed, 28 Apr 2010 12:04:00 +1200 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: o.bouiron@isc84.org, h.henoch@isc84.org CC: PostgreSQL - JDBC Subject: Re: [Jdbc-commits] JDBC and real values returned by Postgres References: <4BD69D2D.3030508@isc84.org> In-Reply-To: <4BD69D2D.3030508@isc84.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.5 tagged_above=-10 required=5 tests=BAYES_05=-0.5 X-Spam-Level: X-Archive-Number: 201004/67 X-Sequence-Number: 20478 Olivier Bouiron wrote: > Under the psql editor, when I want the sum of these 3 rows, the answer > is 5.4. > But, under Java using the JDBC connector, the answer is 5.399999 > > I tried to use an other connector (postgresql-8.2-510.jdbc4) and the > problem disapears. I'd guess that it is due to newer drivers setting extra_float_digits. See http://archives.postgresql.org/pgsql-jdbc/2009-05/msg00077.php -O