Skip site navigation (1) Skip section navigation (2)

LC_COLLATE could cause a LOWER/UPPER/ILIKE malfunction?

From: Daniel Cristian Cruz <danielcristian(at)gmail(dot)com>
To: pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: LC_COLLATE could cause a LOWER/UPPER/ILIKE malfunction?
Date: 2010-01-22 17:36:25
Message-ID: 48d0cacb1001220936y7562c844g224421ba4e4d2d2a@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-admin
I found this problem, where 'ã' MUST be ILIKE 'Ã' (PostgreSQL 8.2.12, RedHat
x86_64):

brd2=# SET client_encoding TO unicode;
SET
brd2=# SELECT 'ã' LIKE 'ã';
 ?column?
----------
 t
(1 registro)

brd2=# SELECT UPPER('ã') LIKE UPPER('ã');
 ?column?
----------
 t
(1 registro)

brd2=# SELECT 'Ã' LIKE UPPER('ã');
 ?column?
----------
 f
(1 registro)

brd2=# SHOW lc_collate ;
   lc_collate
----------------
 pt_BR.iso88591
(1 registro)

The correct LC_COLLATE would be pt_BR.utf8 or is it a bug?

-- 
Daniel Cristian Cruz
クルズ  クリスチアン ダニエル

Responses

pgsql-admin by date

Next:From: Tom LaneDate: 2010-01-22 18:03:40
Subject: Re: LC_COLLATE could cause a LOWER/UPPER/ILIKE malfunction?
Previous:From: Allen JohnsonDate: 2010-01-22 14:51:20
Subject: Re: Permission to postgres to another user's folder

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group