[MDEV-23099] REGEXP_REPLACE(): unexpected result Created: 2020-07-05 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0, 10.1, 10.3.23, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marc Muelller | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | not-10.5, regexp_replace | ||
| Environment: |
AMD64 |
||
| Description |
|
Maria-DB Result: Expected result (should replace 'zdf_neo_HD' by 'XXX'): Omitting one part of the RegExp (e.g. '|kabel(1|_eins)' or '|Eins(Festival|Extra|Plus)') leads to correct results:
Result is confirmed on versions 10.3.23 and 10.4.13 |
| Comments |
| Comment by Alice Sherepa [ 2020-07-06 ] | ||||||
|
Repeatable on 10.0-10.4, but 10.5 returns the correct result.
10.5
| ||||||
| Comment by Sergei Golubchik [ 2021-10-26 ] | ||||||
|
10.0–10.4 uses pcre (version 8.x), 10.5 uses pcre2. http://www.pcre.org/ says
So there is a chance we won't be able to do anything about it, besides advising to upgrade to 10.5 or later. |