pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Markus Schaber <schabi@logix-tt.com>
To: pgsql-jdbc@postgresql.org
Cc: Holger Schulz <hst1@online.de>
Subject: Re: Bug extracting money value
Date: Mon, 02 Oct 2006 09:03:59 +0200
Message-ID: <4520B9DF.1030901@logix-tt.com> (raw)
In-Reply-To: <45202F05.4050602@opencloud.com>
References: <rPIjYa0u87xbEkf7wiWlAPS3aOby2tyLTfkRCNbvOP1@akmail>
	<45202F05.4050602@opencloud.com>

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



view thread (5+ messages)  latest in thread

Message-ID: <4520B9DF.1030901@logix-tt.com>
Permalink:  ../4520B9DF.1030901@logix-tt.com/
Also on:    postgresql.org/message-id/4520B9DF.1030901@logix-tt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: schabi@logix-tt.com, hst1@online.de
  Subject: Re: Bug extracting money value
  In-Reply-To: <4520B9DF.1030901@logix-tt.com>
  References: <rPIjYa0u87xbEkf7wiWlAPS3aOby2tyLTfkRCNbvOP1@akmail> <45202F05.4050602@opencloud.com> <4520B9DF.1030901@logix-tt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox