From: Calvo Arias, Francisco <fcaa@tragsa.es>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: RE: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
Date: Fri, 23 Nov 2018 09:04:55 +0000
Message-ID: <808ac80d913f41c0bd156d6a8c123d65@tragsa.es> (raw)
In-Reply-To: <19321.1542906118@sss.pgh.pa.us>
References: <15516-dbfc06804f76790a@postgresql.org>
<19321.1542906118@sss.pgh.pa.us>
Thank you very much for your clarification, Tom. (Also, I'm very sorry for not ending and signing my previous message properly. Shame on me, having being Thanksgivig Day!)
I think I'll submit a correction mentioning that ("PG's downcasing transform is only applied to single-byte characters") for last paragraph on "4.1.1. Identifiers and Key Words" in the documentation which states:
- "[...] unquoted names are always folded to lower case"
- "If you want to write portable applications you are advised to always quote a particular name or never quote it"
Regards,
Paco Calvo
-----Mensaje original-----
De: Tom Lane [mailto:tgl@sss.pgh.pa.us]
Enviado el: jueves, 22 de noviembre de 2018 18:02
Para: Calvo Arias, Francisco <fcaa@tragsa.es>
CC: pgsql-bugs@lists.postgresql.org
Asunto: Re: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
=?utf-8?q?PG_Bug_reporting_form?= <noreply@postgresql.org> writes:
> When using an identifier not quoted which includes an uppercase letter
> (Spanish Ñ, Unicode U+00D1), it doesn't get transformed to lowercase
> (ñ, Unicode U+00F1) as expected.
PG's downcasing transform is only applied to single-byte characters.
So Ñ could be transformed in LATIN1 encoding, but not UTF8. There are various practical reasons why this is unlikely to change soon.
regards, tom lane
**********************************************************************************************
El consumo de papel es perjudicial para el medio ambiente. Por favor, téngalo en cuenta antes de imprimir este mensaje. AVISO LEGAL: Este mensaje y sus anexos pueden contener información confidencial o legalmente protegida. Está dirigido únicamente a la persona o entidad indicada como destinatarios del mensaje. Si este mensaje le hubiera llegado por error, por favor elimínelo sin revisarlo ni reenviarlo y notifíquelo inmediatamente al remitente. **********************************************************************************************
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: fcaa@tragsa.es, tgl@sss.pgh.pa.us
Subject: Re: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
In-Reply-To: <808ac80d913f41c0bd156d6a8c123d65@tragsa.es>
References: <15516-dbfc06804f76790a@postgresql.org> <19321.1542906118@sss.pgh.pa.us> <808ac80d913f41c0bd156d6a8c123d65@tragsa.es>
* 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