Re: maybe incorrect regexp_replace behavior in v8.3.4 ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: maybe incorrect regexp_replace behavior in v8.3.4 ?
Дата
Msg-id 24763.1337177745@sss.pgh.pa.us
обсуждение исходный текст
Ответ на maybe incorrect regexp_replace behavior in v8.3.4 ?  ("Gauthier, Dave" <dave.gauthier@intel.com>)
Список pgsql-general
"Gauthier, Dave" <dave.gauthier@intel.com> writes:
> bi_hsx_a0_latest=# select regexp_replace('xxx','^xxxy$',null);
> regexp_replace
> ----------------
>
> (1 row)
> But why did it return null in this case?

regexp_replace is strict, so it never even gets called when there's
a null input.

            regards, tom lane

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

Предыдущее
От: Richard Huxton
Дата:
Сообщение: Re: maybe incorrect regexp_replace behavior in v8.3.4 ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Slow queries when functions are inlined