pgsql: Adjust regex for test with opening parenthesis in character clas

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Adjust regex for test with opening parenthesis in character clas
Date: 2025-05-28 00:44:19
Message-ID: E1uK4u1-000M3P-2d@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Adjust regex for test with opening parenthesis in character classes

As written, the test was throwing an error because of an unbalanced
parenthesis. The regex used in the test is adjusted to not fail and to
test the case of an opening parenthesis in a character class after some
nested square brackets.

Oversight in d46911e584d4.

Discussion: https://postgr.es/m/16ab039d1af455652bdf4173402ddda145f2c73b.camel@cybertec.at

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/4fbb46f61271f4b7f46ecad3de608fc2f4d7d80f

Modified Files
--------------
src/test/regress/expected/strings.out | 9 +++++++--
src/test/regress/sql/strings.sql | 2 +-
2 files changed, 8 insertions(+), 3 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Chris Gooch 2025-05-28 10:36:46 RE: [EXT] Re: GSS Auth issue when user member of lots of AD groups
Previous Message Michael Paquier 2025-05-28 00:00:03 pgsql: Fix conversion of SIMILAR TO regexes for character classes