Re: BUG #4044: Incorrect RegExp substring Output

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4044: Incorrect RegExp substring Output
Дата
Msg-id 7260.1206021713@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #4044: Incorrect RegExp substring Output  ("Rui Martins" <Rui.Martins@PDMFC.com>)
Ответы Re: BUG #4044: Incorrect RegExp substring Output  ("Rui Martins" <Rui.Martins@PDMFC.com>)
Список pgsql-bugs
"Rui Martins" <Rui.Martins@PDMFC.com> writes:
> My reasoning is:
> Why would the exact same sub-expression, return different results when
> either preceded or followed by something.

It *isn't* returning different results; you are testing for different
things in these two cases, namely whether there is a match to the whole
pattern or just a parenthesized subpattern.  In none of these examples
was there any match to '(something)' --- there couldn't possibly be,
because "something" isn't in the data string.

            regards, tom lane

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

Предыдущее
От: NikhilS
Дата:
Сообщение: Re: Problem identifying constraints which should not be inherited
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem identifying constraints which should not be inherited