Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 58C959FB3A8 for ; Mon, 2 Oct 2006 04:12:38 -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 12001-01-9 for ; Mon, 2 Oct 2006 04:12:33 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail.logix-tt.com (mail.logix-tt.com [212.211.145.186]) by postgresql.org (Postfix) with ESMTP id 8535D9FB3FA for ; Mon, 2 Oct 2006 04:04:13 -0300 (ADT) Received: from kingfisher.intern.logix-tt.com (p549D14FA.dip0.t-ipconnect.de [84.157.20.250]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.logix-tt.com (Postfix) with ESMTP id 934C765977; Mon, 2 Oct 2006 09:06:33 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id 97CAB181B2EBA; Mon, 2 Oct 2006 09:03:59 +0200 (CEST) Message-ID: <4520B9DF.1030901@logix-tt.com> Date: Mon, 02 Oct 2006 09:03:59 +0200 From: Markus Schaber Reply-To: pgsql-jdbc@postgresql.org Organization: Logical Tracking and Tracing International AG, Switzerland User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Cc: Holger Schulz Subject: Re: Bug extracting money value References: <45202F05.4050602@opencloud.com> In-Reply-To: <45202F05.4050602@opencloud.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.208 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/9 X-Sequence-Number: 15892 Hi, Oliver, Oliver Jowett 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. Without having looked at the code, I think that the ? in getString() comes from the backend formatting the Value with an EUR symbol, and the JDBC driver looking for a $ to skip. HTH, Markus -- Markus Schaber | Logical Tracking&Tracing International AG Dipl. Inf. | Software Development GIS Fight against software patents in Europe! www.ffii.org www.nosoftwarepatents.org