pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: michael.aiello@asg.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15091: to_number() returns incorrect value
Date: Mon, 26 Feb 2018 20:46:28 +0000
Message-ID: <87inajmqtx.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <8870.1519677109@sss.pgh.pa.us>
References: <151965334143.21242.9862077287740270901@wrigleys.postgresql.org>
	<27576.1519667309@sss.pgh.pa.us>
	<87muzvmtiw.fsf@news-spur.riddles.org.uk>
	<8870.1519677109@sss.pgh.pa.us>

>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:

 Tom> Tested at
 Tom> http://rextester.com/l/oracle_online_compiler

 >> The problem is that this tester is defaulting to a German locale and
 >> using . as a thousands separator and , as decimal point, as shown by
 >> this query:
 >> select * from nls_session_parameters
 >> where parameter in ('NLS_TERRITORY','NLS_NUMERIC_CHARACTERS')

 Tom> Oh, thanks ... I was wondering what locale it had chosen, but did
 Tom> not know how to find out.

I had to ask around to find a way that worked both on rextester.com and
on sqlfiddle.com (which also supports Oracle 11, and is where I usually
test oracle query compatibility things). It was the fact that the two
sites behaved differently for this query that got me looking at
parameter settings to begin with; sqlfiddle defaults to US locale.

-- 
Andrew (irc:RhodiumToad)




view thread (9+ messages)  latest in thread

Message-ID: <87inajmqtx.fsf@news-spur.riddles.org.uk>
Permalink:  ../87inajmqtx.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87inajmqtx.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, tgl@sss.pgh.pa.us, michael.aiello@asg.com
  Subject: Re: BUG #15091: to_number() returns incorrect value
  In-Reply-To: <87inajmqtx.fsf@news-spur.riddles.org.uk>
  References: <151965334143.21242.9862077287740270901@wrigleys.postgresql.org> <27576.1519667309@sss.pgh.pa.us> <87muzvmtiw.fsf@news-spur.riddles.org.uk> <8870.1519677109@sss.pgh.pa.us> <87inajmqtx.fsf@news-spur.riddles.org.uk>

* 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