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

BUG #2193: INITCAP and LOWER/UPPER string conversion error

From: "Andras Got" <andrej1981(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2193: INITCAP and LOWER/UPPER string conversion error
Date: 2006-01-21 00:53:37
Message-ID: 20060121005337.342AAF0B02@svr2.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      2193
Logged by:          Andras Got
Email address:      andrej1981(at)gmail(dot)com
PostgreSQL version: 8.0.4, 8.1.1
Operating system:   FreeBSD and Linux
Description:        INITCAP and LOWER/UPPER string conversion error
Details: 

Hi,

8.0.4
I'm trying to select with LOWER/UPPER and INITCAP but they return bad values
after hungarian accentuated letters (e.g:       ). The bad is
value is a capital letter. This makes almost impossible to compare strings
from an input with ones in the table. Also LOWER returns a big capital
letter for the first letter of the word. UPPER doesn't really converts some
chars to uppercase, e.g: , , .

I'd like to something like this with PHP:
"SELECT id FROM table WHERE LOWER(name) = '".strtolower($name)."';

I tried with LATIN2 encoding and the same happened.

8.1.1
The first capital letter probleml looks like to be solved, but the
accentuated letter problem still exists.

Thank you for your time,
Andrej

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2006-01-21 05:47:18
Subject: Re: BUG #2113: PostgreSQL hangs after running for 2 days
Previous:From: Stephen FrostDate: 2006-01-20 20:21:20
Subject: Re: pg_restore COPY error handling

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