Browse Source
MDEV-13173 An RLIKE that previously worked on 10.0 now returns "Got error 'pcre_exec: recursion limit of 100 exceeded' from regexp"
MDEV-13173 An RLIKE that previously worked on 10.0 now returns "Got error 'pcre_exec: recursion limit of 100 exceeded' from regexp"
1. use Regexp_processor_pcre::set_recursion_limit() to set the recursion limit depending on the current available stack size 2. make pcre stack frame to be estimated no less than 500 bytes. sometimes pcre estimates it too low, even though the manual says 500+16 bytes (it was estimated only 188 for me, actual frame size was 512). 3. do it for embedded toopull/353/merge
7 changed files with 87 additions and 7 deletions
-
32mysql-test/r/func_regexp_pcre.result
-
19mysql-test/t/func_regexp_pcre.test
-
15sql/item_cmpfunc.cc
-
2sql/item_cmpfunc.h
-
14sql/item_strfunc.cc
-
2sql/item_strfunc.h
-
10sql/mysqld.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue