Re: UTF8MatchText

Поиск
Список
Период
Сортировка
Искать
От
Tom Lane
Тема
Re: UTF8MatchText
Дата
в 19:24:37
Msg-id
17738.1179699830@sss.pgh.pa.us
Ответ на
Re: UTF8MatchText (Andrew Dunstan)
Список
Дерево обсуждения
Re: UTF8MatchText Tom Lane <tgl@sss.pgh.pa.us>
Re: UTF8MatchText Andrew Dunstan <andrew@dunslane.net>
Andrew Dunstan  writes:
> Tom Lane wrote:
>> On the strength of this analysis, shouldn't we drop the separate
>> UTF8 match function and just use SB_MatchText for UTF8?

> We still call NextChar() after "_", and I think we probably need to, 
> don't we? If so we can't just marry the cases.

Doh, you're right ... but on third thought, what happens with a pattern
containing "%_"?  If % tries to advance bytewise then we'll be trying to
apply NextChar in the middle of a data character, and bad things ensue.

I think we need to go back to the scheme with SB_ and MB_ variants and
no special case for UTF8.

			regards, tom lane
В списке pgsql-patches по дате отправления
От: Andrew Dunstan
Дата:
Сообщение: Re: UTF8MatchText
От: Andrew Dunstan
Дата:
Сообщение: Re: UTF8MatchText
FAQ