Re: 8.0.3 regexp_replace()...

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 8.0.3 regexp_replace()...
Дата
Msg-id 582.1138808010@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 8.0.3 regexp_replace()...  ("rlee0001" <robeddielee@hotmail.com>)
Список pgsql-general
"rlee0001" <robeddielee@hotmail.com> writes:
> My problem is with SUBSTRING. When it fails to find a match for the
> regexp pattern within the source string it returns NULL. Why?!

Because the SQL standard says so.

Of course, you're free to wrap the built-in function in your own
function that has behavior you like better for this case...

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Help in compiling 8.1.2 from source
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: 8.0.3 regexp_replace()...