Re: REGULAR EXPRESSION POSSIBLE PROBLEM

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "dev" <dev(at)strategma(dot)bg>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: REGULAR EXPRESSION POSSIBLE PROBLEM
Date: 2004-11-08 06:11:29
Message-ID: 29030.1099894289@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

"dev" <dev(at)strategma(dot)bg> writes:
> 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Harald Armin Massa 2004-11-08 07:20:10 Re: Installation error
Previous Message Tom Lane 2004-11-08 06:05:25 Re: BUG #1306: locale related issue.