Re: [HACKERS] Bug in LIKE ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [HACKERS] Bug in LIKE ?
Дата
Msg-id 24661.928766023@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [HACKERS] Bug in LIKE ?  (Oleg Bartunov <oleg@sai.msu.su>)
Список pgsql-hackers
Oleg Bartunov <oleg@sai.msu.su> writes:
> [ doesn't see a problem ]

I think the particular test case Daniele gave would only fail if you
do not have USE_LOCALE defined.  But it's definitely busted: the parser
was transformingb LIKE 'foo%'
intob LIKE 'foo%' AND b >= 'fo%' AND b <= 'fo%\377'

with the third clause not present if USE_LOCALE is defined.

Anyway, it's fixed now.  I also cleaned up some confusion about whether
"%%" in a LIKE pattern means a literal % (the SQL spec says not, and
some parts of the code knew it, but other parts didn't...)
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Priorities for 6.6
Следующее
От: ZEUGSWETTER Andreas IZ5
Дата:
Сообщение: Re: [HACKERS] Open 6.5 items