Sergei Golubchik
cb1e76e4de
Merge branch '10.1' into 10.2
2017-08-17 11:38:34 +02:00
Sergei Golubchik
8e8d42ddf0
Merge branch '10.0' into 10.1
2017-08-08 10:18:43 +02:00
Sergei Golubchik
0ec147b617
fix main.func_regexp_pcre on jessie-ppc64le
...
apparently it uses a smaller per-thread stack
2017-07-20 22:26:08 +02:00
Sergei Golubchik
2fcd8c1252
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 too
2017-07-20 20:13:28 +02:00
Sergei Golubchik
75f80004b1
MDEV-12939 A query crashes MariaDB in Item_func_regex::cleanup
...
and
MDEV-13144 regexp on views - crashed mariadb server
implement Item_func_regex::build_clone()
2017-07-05 17:15:57 +02:00
Marko Mäkelä
2d8fdfbde5
Merge 10.1 into 10.2
...
Replace have_innodb_zip.inc with innodb_page_size_small.inc.
2017-06-08 12:45:08 +03:00
Sergei Golubchik
2372bfaa7b
MDEV-12942 REGEXP_INSTR returns 1 when using brackets
...
always use full m_SubStrVec length in pcre_exec, we don't know
how many subexpressions user's regexp will have
2017-05-29 21:07:54 +02:00
Marko Mäkelä
70505dd45b
Merge 10.1 into 10.2
2017-05-22 09:46:51 +03:00
Daniel Black
b30311e52a
MDEV-12420: pcre recursion overflow test case
2017-05-15 22:23:10 +02:00
Nirbhay Choubey
8b2e642aa2
MDEV-7635: Update tests to adapt to the new default sql_mode
2017-02-10 06:30:42 -05:00
Alexander Barkov
46199c0e1d
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.
2015-05-14 14:43:37 +04:00
Alexander Barkov
9e8202013a
MDEV-6965 non-captured group \2 in regexp_replace
2014-11-10 16:43:27 +04:00
Alexander Barkov
f9e5f237f0
MDEV-6027 RLIKE: "." no longer matching new line
...
Added a new system variable:
default_regex_flags='DOTALL,DUPNAMES,EXTENDED,EXTRA,MULTILINE,UNGREEDY'
2014-04-23 10:57:25 +04:00
Alexander Barkov
1bcd2bebc6
MDEV-4425 Regexp enhancements
...
Do not pass PCRE_UCP flag for binary data.
This makes bytes 0x80..FF not to belong to
generic character classes \d (digit) and \w (word character).
SELECT 0xFF RLIKE '\\w';
-> 0
Note, this change does not affect non-binary data,
which is still examined with the PCRE_UCP flag by default.
2013-10-08 18:25:17 +04:00
Alexander Barkov
30ad3354b9
MDEV-4425 Regexp enhancements
...
Adding tests with 0x00 characters from
Bug#70470 REGEXP fails to find matches after NUL character
2013-10-03 14:28:57 +04:00
Alexander Barkov
01f833569b
MDEV-4425 Regexp enhancements
...
Adding more tests for case sensitivity,
with various collation and (?i) flags combinations.
2013-10-03 14:24:16 +04:00
Alexander Barkov
285e7aa179
MDEV-4425 REGEXP enhancements
2013-09-26 18:02:17 +04:00