X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 5AB9356394; Fri, 25 Feb 2005 15:51:50 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 04228-03; Fri, 25 Feb 2005 15:51:41 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id 5067052A5B; Fri, 25 Feb 2005 15:51:40 +0000 (GMT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id j1PFprhK005470; Fri, 25 Feb 2005 10:51:56 -0500 (EST) To: =?iso-8859-1?Q?Martin_Sch=E4fer?= Cc: pgsql-general@postgresql.org, pgsql-sql@postgresql.org Subject: Re: Are SQL queries locale dependent? In-reply-to: References: Comments: In-reply-to =?iso-8859-1?Q?Martin_Sch=E4fer?= message dated "Fri, 25 Feb 2005 09:41:03 +0000" Date: Fri, 25 Feb 2005 10:51:53 -0500 Message-ID: <5469.1109346713@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.007 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/1348 X-Sequence-Number: 74152 =?iso-8859-1?Q?Martin_Sch=E4fer?= writes: > I recently found out that my app doesn't work in Spain because it creates localized queries like this: > create table t (c1 float8, c2 float8); > insert into t (c1, c2) values (3,14159, 1,4142); > I understand that PostgreSQL obviously can't parse this query. But I'm not sure how to fix this query so that it works under all circumstances. Use dots. The SQL syntax for a number is not locale-dependent. regards, tom lane