pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Mikko Tiihonen <mikko.tiihonen@nitorcreations.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug when retrieving money datatype.
Date: Wed, 30 Nov 2011 09:36:50 -0500
Message-ID: <9322.1322663810@sss.pgh.pa.us> (raw)
In-Reply-To: <4ED5D369.30902@nitorcreations.com>
References: <jb3j7b$s3p$1@dough.gmane.org>
	<CA+0W9LOVh4JK1OLYqymtUFJ7Dxa5UTQv_v4g6-gswud12MrvAA@mail.gmail.com>
	<4ED5D369.30902@nitorcreations.com>

Mikko Tiihonen <mikko.tiihonen@nitorcreations.com> writes:
> I was planning to add the binary format support for money to the
> jdbc driver when I had some free time. It will solve all parsing
> problems related to locale and give nice speed boost at the same time.

I don't think that's exactly a magic bullet.  Yes, it'll mean you don't
need to know the locale's currency symbol or what it uses for decimal
point, but how are you going to determine where the decimal point is
in the binary representation?  You'll still be dependent on knowing the
server's lc_monetary locale.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <9322.1322663810@sss.pgh.pa.us>
Permalink:  ../9322.1322663810@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9322.1322663810@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, mikko.tiihonen@nitorcreations.com
  Subject: Re: Bug when retrieving money datatype.
  In-Reply-To: <9322.1322663810@sss.pgh.pa.us>
  References: <jb3j7b$s3p$1@dough.gmane.org> <CA+0W9LOVh4JK1OLYqymtUFJ7Dxa5UTQv_v4g6-gswud12MrvAA@mail.gmail.com> <4ED5D369.30902@nitorcreations.com> <9322.1322663810@sss.pgh.pa.us>

* 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