Re: Bug in ILIKE?

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: Bug in ILIKE?
Дата
Msg-id 48DD708D.6070508@dunslane.net
обсуждение исходный текст
Ответ на Re: Bug in ILIKE?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Bug in ILIKE?
Список pgsql-hackers

Tom Lane wrote:
> Andrew Dunstan <andrew@dunslane.net> writes:
>   
>> Tom Lane wrote:
>>     
>>> I think it's just a bug in 8.3.
>>>       
>
>   
>> Well, here's a patch that I think fixes it. If you're happy I'll apply 
>> it to HEAD and 8.3.
>>     
>
> That patch isn't gonna apply to HEAD ;-).  Also the introduction of
> NextChar is simply broken, as it will skip additional bytes of a
> multibyte char without having compared 'em.  All you need AFAICS is
> to put TCHAR()s into the *p != *t comparison, so that it matches the
> case for ordinary characters.
>
>             
>   

I'll have another look. What happens in that case though if you have 
escape+x where x is a multibyte char?

cheers

andrew


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Abhijit Menon-Sen
Дата:
Сообщение: Re: [PATCH] allow has_table_privilege(..., 'usage') on sequences
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug in ILIKE?