Re: [SQL] Strange behavior

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Christophe Labouisse <labouiss(at)cybercable(dot)fr>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] Strange behavior
Date: 1999-04-27 14:31:01
Message-ID: 8381.925223461@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Christophe Labouisse <labouiss(at)cybercable(dot)fr> writes:
>> There is a hack in the parser that tries to transform the first of these
>> into this:
>>
>> select crit_url from crit where crit_url like 'films/%'
>> AND crit_url >= 'films/' AND crit_url <= 'films/\377'
>> order by crit_url;

> Well I guess that's it since \377 in fr_FR is (ydierisis).

And I suppose that sorts before, or the same as, plain y? Oops.

As a temporary measure you could rebuild with USE_LOCALE turned on;
the parser code is set up not to generate the <= clause if that's
defined. But we need a better solution.

regards, tom lane

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-04-27 14:36:43 Re: [SQL] substring
Previous Message Brook Milligan 1999-04-27 14:26:08 rules help