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

From: "Roman Kononov" <kononov(at)ftml(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5257: wrong results of SUBSTRING with SQL regular expressions
Date: 2010-01-02 19:30:45
Message-ID: 201001021930.o02JUjcO094014@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 5257
Logged by: Roman Kononov
Email address: kononov(at)ftml(dot)net
PostgreSQL version: 8.4.2
Operating system: GNU/Linux x86_64
Description: wrong results of SUBSTRING with SQL regular expressions
Details:

test=# select substring('34' from '(2|3)#"4#"' for '#');
substring
-----------
3
(1 row)

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

(1 row)

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

(1 row)

These look wrong according to the PG documentation.

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2010-01-02 20:01:04 Re: BUG #5257: wrong results of SUBSTRING with SQL regular expressions
Previous Message Tom Lane 2010-01-02 19:23:00 Re: Error in exclusion constraint error message (8.5)?