Re: [SQL] Strange behavior
От | Christophe Labouisse |
---|---|
Тема | Re: [SQL] Strange behavior |
Дата | |
Msg-id | m3eml6ob1k.fsf@gabuzo.meunet обсуждение исходный текст |
Ответ на | Re: [SQL] Strange behavior (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: [SQL] Strange behavior
|
Список | pgsql-sql |
Tom Lane <tgl@sss.pgh.pa.us> writes: > > select crit_url from crit where crit_url like 'films/%' order by crit_url; > > [ gives wrong results, whereas this gives right results: ] > > select crit_url from crit where crit_url like '%films/%' order by crit_url; > > What locale and/or MULTIBYTE setting are you using? fr_FR > > 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). Christophe Labouisse : Cinéma, typographie, Unix christophe.labouisse@dial.oleane.com http://www.multimania.com/gabuzo/ Le cinéma en Lumière : http://www.lumiere.org/
В списке pgsql-sql по дате отправления: