From: Oliver Jowett <oliver@opencloud.com>
To: Holger Schulz <hst1@online.de>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug extracting money value
Date: Sun, 01 Oct 2006 21:11:33 +0000
Message-ID: <45202F05.4050602@opencloud.com> (raw)
In-Reply-To: <rPIjYa0u87xbEkf7wiWlAPS3aOby2tyLTfkRCNbvOP1@akmail>
References: <rPIjYa0u87xbEkf7wiWlAPS3aOby2tyLTfkRCNbvOP1@akmail>
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
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: oliver@opencloud.com, hst1@online.de
Subject: Re: Bug extracting money value
In-Reply-To: <45202F05.4050602@opencloud.com>
References: <rPIjYa0u87xbEkf7wiWlAPS3aOby2tyLTfkRCNbvOP1@akmail> <45202F05.4050602@opencloud.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