Re: BUG #1931: ILIKE and LIKE fails on Turkish locale

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Victor Snezhko <snezhko(at)indorsoft(dot)ru>
Cc: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>, pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #1931: ILIKE and LIKE fails on Turkish locale
Date: 2006-09-21 15:50:38
Message-ID: 1237.1158853838@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-tr-genel

Victor Snezhko <snezhko(at)indorsoft(dot)ru> writes:
> 2) When I try to create a stored procedure to create table (e.g., for
> creating table only if it doesn't already exist), it fails to
> compile if i use cyrillic letter "" (unicode id: 0x0445, utf-8
> representation is D1 85) with the following weird error:

> ERROR: expected dot between identifiers:
> CONTEXT: compile of PL/pgSQL function "createoraltertable" near line 2

> the following query fails:

> CREATE OR REPLACE FUNCTION TestFunction()
> RETURNS int
> AS $$
> BEGIN
> SELECT FROM test_table;
> RETURN 0;
> END;
> $$ LANGUAGE plpgsql;

I tried to duplicate this without success on Fedora Core 5. Either your
ru_RU.utf8 locale works differently from Fedora's, or something else is
wrong. Looking at the code, the only very plausible theory is that
isspace() is doing something different than we expect it to. I wonder
whether you have the database encoding set to something else than what
the postmaster's LC_CTYPE locale expects?

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Christoph Zwerschke 2006-09-21 16:49:26 BUG #2642: Connection problems without IPv6
Previous Message Tom Lane 2006-09-21 14:37:11 Re: BUG #2632: createuser language poblem

Browse pgsql-tr-genel by date

  From Date Subject
Next Message Victor Snezhko 2006-09-22 08:04:35 Re: BUG #1931: ILIKE and LIKE fails on Turkish locale
Previous Message Adnan DURSUN 2006-09-07 13:30:16 Re: Cursor ve Subselect yada Join...