From: | Andrew Gierth <andrew(at)tao11(dot)riddles(dot)org(dot)uk> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | michael(dot)aiello(at)asg(dot)com, pgsql-bugs(at)lists(dot)postgresql(dot)org |
Subject: | Re: BUG #15091: to_number() returns incorrect value |
Date: | 2018-02-26 20:46:28 |
Message-ID: | 87inajmqtx.fsf@news-spur.riddles.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs |
>>>>> "Tom" == Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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)
From | Date | Subject | |
---|---|---|---|
Next Message | Devrim Gündüz | 2018-02-26 21:25:56 | Re: BUG #15090: libpq.so: /lib64/libc.so.6: version `GLIBC_2.14' not found |
Previous Message | Tom Lane | 2018-02-26 20:31:49 | Re: BUG #15091: to_number() returns incorrect value |