pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: fcaa@tragsa.es
Subject: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
Date: Thu, 22 Nov 2018 16:27:53 +0000
Message-ID: <15516-dbfc06804f76790a@postgresql.org> (raw)

The following bug has been logged on the website:

Bug reference:      15516
Logged by:          Paco Calvo
Email address:      fcaa@tragsa.es
PostgreSQL version: 9.5.15
Operating system:   MS Windows Server 2012 R2
Description:        

Hi list,

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. For instance, using a database with UTF-8
encoding and both LC_COLLATE and LC_CTYPE as 'Spanish_Spain.1252', the
following sentence which uses 2 identifiers with a Ñ uppercase letter

  CREATE TABLE AÑO (CaÑo integer)

creates the table maintaining both Ñ letters as uppercase and forcing to
quote both identifiers as

  CREATE TABLE "aÑo" ("caÑo" integer)

instead of all lowercase and no quoting as expected

  CREATE TABLE año (caño integer)

This quirk in lowercasing identifiers forces to use a different, quoted
identifier or manually change afterwards every identifier.

NB: Reproduced also with PostgreSQL 9.6.9 on MS Windows Server 2012 R2 and
PostgreSQL 11.1 on MS Windows Server 2008 R2. Waiting to test it under Linux
and MacOS.



view thread (3+ messages)  latest in thread

Message-ID: <15516-dbfc06804f76790a@postgresql.org>
Permalink:  ../15516-dbfc06804f76790a@postgresql.org/
Also on:    postgresql.org/message-id/15516-dbfc06804f76790a@postgresql.org

 · 

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 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: noreply@postgresql.org, fcaa@tragsa.es
  Subject: Re: BUG #15516: Identifier not quoted with uppercase letter (spanish Ñ) doesn't get transformed to lowercase (ñ)
  In-Reply-To: <15516-dbfc06804f76790a@postgresql.org>
  References: <15516-dbfc06804f76790a@postgresql.org>

* 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