Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5CFDE9FB333 for ; Mon, 2 Oct 2006 04:36:32 -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 12107-05 for ; Mon, 2 Oct 2006 04:36:28 -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 216CA9FB32B for ; Mon, 2 Oct 2006 04:36:29 -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 3E5D865977 for ; Mon, 2 Oct 2006 09:38:52 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) by kingfisher.intern.logix-tt.com (Postfix) with ESMTP id ECFAC18151EB9 for ; Mon, 2 Oct 2006 09:36:21 +0200 (CEST) Message-ID: <4520C175.7040100@logix-tt.com> Date: Mon, 02 Oct 2006 09:36:21 +0200 From: Markus Schaber 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 Subject: Re: Bug extracting money value References: <45202F05.4050602@opencloud.com> <4520B9DF.1030901@logix-tt.com> In-Reply-To: <4520B9DF.1030901@logix-tt.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.207 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO X-Spam-Level: X-Archive-Number: 200610/10 X-Sequence-Number: 15893 Hi, All, Markus Schaber wrote: > 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. I now looked at the code. It seems that the Code tries to strip brackets () and anything outside of them, however, I did not get my backend to generate anything containing brackets. With the US locale, it generated '$5.00' and '-$5.00', with the european locale, it generated '5.00' and '-5.00'. 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