pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Meskes <meskes@postgreSQL.org>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] Spanish format on date and numbers
Date: Mon, 06 Dec 1999 10:22:32 -0500
Message-ID: <18449.944493752@sss.pgh.pa.us> (raw)
In-Reply-To: <19991206075442.A1392@fam-meskes.de>

Michael Meskes <meskes@postgreSQL.org> writes:
> On Mon, Dec 06, 1999 at 02:02:15AM +0000, Thomas Lockhart wrote:
>> I haven't tested this, but we do use the system libraries for reading
>> numbers. So if they are locale-enabled, then locale-specific numbers
>> should be recognized...

> Yes, but the parser probably won't. It definitely only lists a decimal
> point.

We can't mess around with SQL syntax --- or would you like

	SELECT 12,34;

to have locale-dependent results?

However, I think we could make the type-specific I/O routines for
appropriate types be locale-dependent.  So you could do

	SELECT '12,34'::int4;

and get the desired behavior in a locale where , is the radix point.

OTOH, arrays of int might be tricky...

			regards, tom lane



view thread (22+ messages)  latest in thread

Message-ID: <18449.944493752@sss.pgh.pa.us>
Permalink:  ../18449.944493752@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/18449.944493752@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: tgl@sss.pgh.pa.us, meskes@postgreSQL.org
  Subject: Re: [INTERFACES] Spanish format on date and numbers
  In-Reply-To: <18449.944493752@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