Unix Technical Forum

BUG #3525: Lithuanian characters doesn't work in queries with regular expressions

This is a discussion on BUG #3525: Lithuanian characters doesn't work in queries with regular expressions within the pgsql Bugs forums, part of the PostgreSQL category; --> The following bug has been logged online: Bug reference: 3525 Logged by: Rolandas Rudomanskis Email address: rolandasr@gmail.com PostgreSQL version: ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 11:01 AM
Rolandas Rudomanskis
 
Posts: n/a
Default BUG #3525: Lithuanian characters doesn't work in queries with regular expressions


The following bug has been logged online:

Bug reference: 3525
Logged by: Rolandas Rudomanskis
Email address: rolandasr@gmail.com
PostgreSQL version: 8.2.3
Operating system: Debian Etch
Description: Lithuanian characters doesn't work in queries with
regular expressions
Details:

The database is set to unicode. Debian locale is utf-8.

All lithuanian characters characters, except ė, ų, namely,
ą, č, ę, į, š, ū, ž in non-case sensitive queries specifying word
beginning, are ignored. SQL example:

select * from table1 where title ~* '\\m" + mytext + "';"

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 11:01 AM
Tom Lane
 
Posts: n/a
Default Re: BUG #3525: Lithuanian characters doesn't work in queries with regular expressions

"Rolandas Rudomanskis" <rolandasr@gmail.com> writes:
> Description: Lithuanian characters doesn't work in queries with
> regular expressions


> The database is set to unicode. Debian locale is utf-8.


Yeah, the regex code doesn't handle localization issues (such as
case-insensitive matching) correctly for multibyte characters.
Can you use a single-byte encoding? Alternatively, I believe
case-insensitive LIKE matching works for this.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org

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 02:31 AM.


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