Skip site navigation (1) Skip section navigation (2)

pgsql: Fix similar_escape() to convert parentheses to non-capturing

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Fix similar_escape() to convert parentheses to non-capturing
Date: 2010-01-02 20:59:16
Message-ID: 20100102205916.5726A753FB7@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Fix similar_escape() to convert parentheses to non-capturing style.
This is needed to avoid unwanted interference with SUBSTRING behavior,
as per bug #5257 from Roman Kononov.  Also, add some basic intelligence
about character classes (bracket expressions) since we now have several
behaviors that aren't appropriate inside a character class.

As with the previous patch in this area, I'm reluctant to back-patch
since it might affect applications that are relying on the prior
behavior.

Modified Files:
--------------
    pgsql/src/backend/utils/adt:
        regexp.c (r1.85 -> r1.86)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/regexp.c?r1=1.85&r2=1.86)

pgsql-committers by date

Next:From: Tom LaneDate: 2010-01-02 21:28:46
Subject: pgsql: Add missing schema-qualification in tab completion query.
Previous:From: Tom LaneDate: 2010-01-02 17:53:57
Subject: pgsql: check_exclusion_constraint didn't actually work correctly for

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group