Re: SIMILAR TO expressions translate wildcards where they shouldn't
Michael Paquier <michael@paquier.xyz>
From: Michael Paquier <michael@paquier.xyz>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, pgsql-bugs@lists.postgresql.org
Date: 2025-05-28T00:15:33Z
Lists: pgsql-bugs
On Wed, May 28, 2025 at 09:00:20AM +0900, Michael Paquier wrote: > Nice trick that makes the test output much smaller. I've used this > idea and applied the fix down to v13 after a second lookup this > morning. And I've managed to miss that the case with an opening parenthesis throws an error due to an unbalanced set of parentheses because the regexp is processed when the query is written the way Tom has mentioned. Will fix in a bit after an extra round of check-world, sorry about that.. -- Michael
Commits
Same data as JSON:
GET /api/v1/messages/:b64id/commits
the thread's linked commits as JSON, with link sources.
API reference →
-
Adjust regex for test with opening parenthesis in character classes
- 31ee5ec698ed 13.22 landed
- 0c09922c04ea 14.19 landed
- 4dc642e75f1c 15.14 landed
- 52d08620e48c 16.10 landed
- a3c6d92f3cb3 17.6 landed
- 4fbb46f61271 18.0 landed
-
Fix conversion of SIMILAR TO regexes for character classes
- 9481d1614c2a 13.22 landed
- 1fe15d25e65c 14.19 landed
- b3e99115e44c 15.14 landed
- e9e535d61120 16.10 landed
- e3ffc3e91d04 17.6 landed
- d46911e584d4 18.0 landed