From: Tom Lane <tgl@sss.pgh.pa.us>
To: Heikki Linnakangas <hlinnakangas@vmware.com>
Cc: Euler Taveira <euler@timbira.com.br>
Cc: Thomas Kellerer <spam_eater@gmx.net>
Cc: pgsql-bugs@postgresql.org
Subject: Re: Inconsistency between TO_CHAR() and TO_NUMBER()
Date: Mon, 13 May 2013 10:09:18 -0400
Message-ID: <2768.1368454158@sss.pgh.pa.us> (raw)
In-Reply-To: <5190C442.3000609@vmware.com>
References: <51878292.6080003@fooby.de>
<14272.1367850378@sss.pgh.pa.us>
<5187C2FE.9000305@fooby.de>
<8415.1368200958@sss.pgh.pa.us>
<kmj64d$qrq$1@ger.gmane.org>
<518D71FB.9050106@timbira.com.br>
<5190C442.3000609@vmware.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
Heikki Linnakangas <hlinnakangas@vmware.com> writes:
> Would it be possible to be lenient, and also accept . as the decimal
> separator, when there is no ambiguity? Ie. when . is not the thousands
> separator.
I originally coded it that way, but concluded that it was probably a
waste of code space. How many locales can you point to where neither
the decimal point nor thousands_sep is "."? It certainly wouldn't be
enough to noticeably reduce the potential pain from this change, so
I decided that it'd be better to keep the behavior straightforward
and as-documented.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, hlinnakangas@vmware.com, euler@timbira.com.br, spam_eater@gmx.net
Subject: Re: Inconsistency between TO_CHAR() and TO_NUMBER()
In-Reply-To: <2768.1368454158@sss.pgh.pa.us>
References: <51878292.6080003@fooby.de> <14272.1367850378@sss.pgh.pa.us> <5187C2FE.9000305@fooby.de> <8415.1368200958@sss.pgh.pa.us> <kmj64d$qrq$1@ger.gmane.org> <518D71FB.9050106@timbira.com.br> <5190C442.3000609@vmware.com> <2768.1368454158@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