Re: BUG #5257: wrong results of SUBSTRING with SQL regular expressions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5257: wrong results of SUBSTRING with SQL regular expressions
Дата
Msg-id 10279.1262462464@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5257: wrong results of SUBSTRING with SQL regular expressions  ("Roman Kononov" <kononov@ftml.net>)
Список pgsql-bugs
"Roman Kononov" <kononov@ftml.net> writes:
> test=# select substring('34' from '(2|3)#"4#"' for '#');
>  substring
> -----------
>  3
> (1 row)

Hmm.  I guess we need to translate ( and ) to non-capturing parens.

> test=# select substring('^' from '#"^#"' for '#');
>  substring
> -----------
>
> (1 row)

> test=# select substring('$' from '#"$#"' for '#');
>  substring
> -----------
>
> (1 row)

These cases are already fixed in HEAD.
http://archives.postgresql.org/pgsql-committers/2009-10/msg00048.php

            regards, tom lane

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

Предыдущее
От: "Roman Kononov"
Дата:
Сообщение: BUG #5257: wrong results of SUBSTRING with SQL regular expressions
Следующее
От: Tomas Studva
Дата:
Сообщение: test message