Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqPfU-0002ep-10 for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Feb 2018 20:46:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eqPfT-0003MA-2U for pgsql-bugs@arkaria.postgresql.org; Mon, 26 Feb 2018 20:46:39 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqPfS-0003M1-Sw for pgsql-bugs@lists.postgresql.org; Mon, 26 Feb 2018 20:46:38 +0000 Received: from lungold.riddles.org.uk ([82.68.208.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1eqPfL-0002v4-Fa for pgsql-bugs@lists.postgresql.org; Mon, 26 Feb 2018 20:46:38 +0000 Received: from [192.168.127.1] (port=38848 helo=caithnard.riddles.org.uk) by lungold.riddles.org.uk with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.88 (FreeBSD)) (envelope-from ) id 1eqPfJ-000HRS-7X; Mon, 26 Feb 2018 20:46:29 +0000 Received: from [127.0.0.1] (port=27341 helo=caithnard.riddles.org.uk) by caithnard.riddles.org.uk with esmtp (Exim 4.89 (FreeBSD)) (envelope-from ) id 1eqPfI-00090q-Hl; Mon, 26 Feb 2018 20:46:28 +0000 From: Andrew Gierth To: Tom Lane Cc: michael.aiello@asg.com, pgsql-bugs@lists.postgresql.org Subject: Re: BUG #15091: to_number() returns incorrect value In-Reply-To: <8870.1519677109@sss.pgh.pa.us> (Tom Lane's message of "Mon, 26 Feb 2018 15:31:49 -0500") Message-ID: <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> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (berkeley-unix) Date: Mon, 26 Feb 2018 20:46:28 +0000 MIME-Version: 1.0 Content-Type: text/plain List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk >>>>> "Tom" == Tom Lane 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)