1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-8102 REGEXP function fails to match hex values when expression is stored as a variable

We don't fix the bug itself, we just make regex functions display errors
returned from pcre_exec() as MariaDB warnings.
This commit is contained in:
Alexander Barkov
2015-05-14 14:43:37 +04:00
parent 0b4231e9f1
commit 46199c0e1d
6 changed files with 134 additions and 4 deletions

View File

@ -0,0 +1,10 @@
SET debug_dbug='+d,pcre_exec_error_123';
SELECT 'a' RLIKE 'a';
'a' RLIKE 'a'
0
Warnings:
Warning 1139 Got error 'pcre_exec: Internal error (-123)' from regexp
SET debug_dbug='';
SELECT 'a' RLIKE 'a';
'a' RLIKE 'a'
1