Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 6505C9FB2E1 for ; Sun, 1 Oct 2006 18:11:39 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 25629-08 for ; Sun, 1 Oct 2006 21:11:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 551F49FB2C5 for ; Sun, 1 Oct 2006 18:11:35 -0300 (ADT) Received: from 222-153-172-120.jetstream.xtra.co.nz ([222.153.172.120] helo=[10.1.1.3]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GU8aw-0005R2-Sy; Mon, 02 Oct 2006 10:11:31 +1300 Message-ID: <45202F05.4050602@opencloud.com> Date: Sun, 01 Oct 2006 21:11:33 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Holger Schulz CC: pgsql-jdbc@postgresql.org Subject: Re: Bug extracting money value References: In-Reply-To: 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 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200610/7 X-Sequence-Number: 15890 Holger Schulz wrote: > I always get an exception when I try to extract the money value I inserted this way: "money" isn't a well-supported type on the server side (I believe its use is no longer recommended) .. IIRC the formatting rules for it are locale-specific, among other problems. > Object oValue = m_resultSet.getObject(i); > org.postgresql.util.PSQLException: Bad value for type double : ?7,00 ... though I'd expect at least getObject to work, if not getDouble() Maybe you could dig into this and send us a patch? -O