Re: PATCH: CITEXT 2.0 v4

Поиск
Список
Период
Сортировка
От Michael Paesold
Тема Re: PATCH: CITEXT 2.0 v4
Дата
Msg-id 2DF54270-10B1-4687-869F-4AD77D3A7CB8@gmx.at
обсуждение исходный текст
Ответ на Re: PATCH: CITEXT 2.0 v4  ("David E. Wheeler" <david@kineticode.com>)
Ответы Re: PATCH: CITEXT 2.0 v4  ("David E. Wheeler" <david@kineticode.com>)
Список pgsql-hackers
Am 16.07.2008 um 20:38 schrieb David E. Wheeler:
>
> The trouble is that, right now:
>
> template1=# select regexp_replace( 'fxx'::citext, 'X'::citext, 'o');
> regexp_replace
> ----------------
> fxx
> (1 row)
>
> So there's an inconsistency there. I don't know how to make that  
> work case-insensitively.

Wouldn't it be possible to create a variant of regexp_replace, i.e.  
regexp_replace(citext,citext,text), which would again lower-case the  
first two arguments before passing the input to  
regexp_replace(text,text,text)?

Best Regards
Michael Paesold


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

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: WITH RECUSIVE patches 0717
Следующее
От: "Pavel Stehule"
Дата:
Сообщение: hash distinct