Re: BUG #5478: ILIKE operator returns wrong result

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5478: ILIKE operator returns wrong result
Дата
Msg-id 28626.1275063100@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #5478: ILIKE operator returns wrong result  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #5478: ILIKE operator returns wrong result  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I wrote:
> No, that patch is just plain wrong.  It eats %'s that would affect
> the later recursive MatchText calls.

Hmm ... actually, it's not wrong, but it's not good either.  What we
really ought to do here is not just eat _'s following %, but eat *any
mixture of* % and _, advancing over a text character per _.  The
subsequent search loop is reached only when we find a literal pattern
character to match.  This generalizes the original intention of not
using recursion to deal with simple advancing.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5478: ILIKE operator returns wrong result
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #5478: ILIKE operator returns wrong result