dbTalk Databases Forums  

[BUGS] REGULAR EXPRESSION POSSIBLE PROBLEM

mailing.database.pgsql-bugs mailing.database.pgsql-bugs


Discuss [BUGS] REGULAR EXPRESSION POSSIBLE PROBLEM in the mailing.database.pgsql-bugs forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dev
 
Posts: n/a

Default [BUGS] REGULAR EXPRESSION POSSIBLE PROBLEM - 11-07-2004 , 10:39 PM






Hi PG team ,
my database is in UNICODE
I try this (with Bulgarian chars):

SELECT 'Тест проба' ~* 'тест' as result

returns FALSE

above query is same as:

SELECT 'Test exam' ~* 'test' as result

retuns TRUE

the only different is that strings are in English


Is there problem with cyrilic?
I tested postgresql server 8.0.0beta-4 in Win32 platform, but I have same
problem in linux/postgresql 7.4.x with UNICODE database.

Thanks in advanced.

regards Antony Raijekov



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

Reply With Quote
  #2  
Old   
Tom Lane
 
Posts: n/a

Default Re: [BUGS] REGULAR EXPRESSION POSSIBLE PROBLEM - 11-08-2004 , 12:20 AM






"dev" <dev (AT) strategma (DOT) bg> writes:
Quote:
my database is in UNICODE
I try this (with Bulgarian chars):

SELECT 'Тест проба' ~* 'тест' as result

returns FALSE

above query is same as:

SELECT 'Test exam' ~* 'test' as result

retuns TRUE
The regexp stuff is not currently capable of dealing with case
conversions in multi-byte character sets (such as Unicode).
Is there a Latin-N encoding you could use?

regards, tom lane

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


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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.