Unix Technical Forum

BUG #2402: case insensitive match for unicode doesn't work

This is a discussion on BUG #2402: case insensitive match for unicode doesn't work within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 2402 Logged by: Balázs Klein Email address: balazs.klein@t-online.hu PostgreSQL version: ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 10:57 AM
Balázs Klein
 
Posts: n/a
Default BUG #2402: case insensitive match for unicode doesn't work


The following bug has been logged online:

Bug reference: 2402
Logged by: Balázs Klein
Email address: balazs.klein@t-online.hu
PostgreSQL version: 8.1
Operating system: Gentoo Linux
Description: case insensitive match for unicode doesn't work
Details:

case conversion and case insensitive match (with or without regular
expression) does not work with non standard (Greek, Turkish, Hungarian,
etc.) characters

Examples:

Select 'a' ILIKE 'A'
--True

Select 'á' ILIKE 'Á'
--False

Select 'a' ~* 'A'
--True

Select 'á' ~* 'Á'
--False

Select upper('a')='A'
--True

Select upper('á')='Á'
--False

You would get the same result with é,ó,ü,ű,ó or with many Greek
characters that I tried.

I raised this issue on pgsql.general -
http://groups.google.com/group/pgsql.../20aed89ab0e19
e3d/4771fb1be397afea#4771fb1be397afea
but there didn't seem to be an easy workaround for this

On a sidenote SQLServer2000 and Access also make mistakes with the
equivalent of upper/lower function but they give correct result with more
characters than PG. Which at least consistently fails

Regards.
Balázs

---------------------------(end of broadcast)---------------------------
TIP 1: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 10:57 AM
Volkan YAZICI
 
Posts: n/a
Default Re: BUG #2402: case insensitive match for unicode doesn't work

On Apr 21 05:29, Balázs Klein wrote:
> Description: case insensitive match for unicode doesn't work


Case conversion of multibyte characters related bugs has been resolved
in cvs tip and will be available for 8.2.

> I raised this issue on pgsql.general -
> http://groups.google.com/group/pgsql.../20aed89ab0e19
> e3d/4771fb1be397afea#4771fb1be397afea
> but there didn't seem to be an easy workaround for this


Please try to search bugs archive before sending any bug report. (IIRC,
this 3rd or 4th bug report with same issue.)


Regards.

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:20 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com