Re: LIKE/ESCAPE implementation

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: LIKE/ESCAPE implementation
Дата
Msg-id 23112.965535010@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: LIKE/ESCAPE implementation  (Thomas Lockhart <lockhart@alumni.caltech.edu>)
Список pgsql-hackers
Thomas Lockhart <lockhart@alumni.caltech.edu> writes:
> I had thought it would be trivial to do ILIKE, but now I'm not sure how
> to handle the multi-byte case. It isn't sufficient to wrap the
> single-byte comparison arguments with tolower() is it??

I'd be inclined to force both strings to lower case as a whole and
then apply normal LIKE.  Comments anyone?

> I recall people asking for it, but since it is a non-standard
> feature what implementation example should I follow? What alternatives
> are there? Is "check the archives" sufficient to produce a complete
> design discussion?

I do not recall seeing a complete proposal, but wasn't someone just
opining that Oracle has such a feature?  If so, borrowing their spec
seems the thing to do.
        regards, tom lane


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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: LIKE/ESCAPE implementation
Следующее
От: Philip Warner
Дата:
Сообщение: Re: COALESCE implementation question