[MDEV-17185] regexp_substr handles non capturing groups incorrectly Created: 2018-09-13 Updated: 2018-09-18 Resolved: 2018-09-14 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 10.2.17 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Kenneth Penza | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 16.04 |
||
| Description |
|
The behaviour of regexp_substr is inconsistent with PRCE when using non-capturing group. Test of regular expression using Perl:
Test of regular expression using MariaDB:
Mysqld parameters:
Testcase:
|
| Comments |
| Comment by Alice Sherepa [ 2018-09-14 ] | |||
|
could you please explain why you consider this is a bug.
--prints group 1, which is id1.
| |||
| Comment by Kenneth Penza [ 2018-09-14 ] | |||
|
It's not a bug, I have misinterpreted the documentation. Went through the documentation, did some further tests and can confirm that the function works as expected. |