diff options
| author | Alexander Barkov <bar@mnogosearch.org> | 2013-10-03 14:28:57 +0400 |
|---|---|---|
| committer | Alexander Barkov <bar@mnogosearch.org> | 2013-10-03 14:28:57 +0400 |
| commit | 30ad3354b9786a4db54643b127a88aaa073c0237 (patch) | |
| tree | fa466fab130f2dc66f94e2048f75334105da65f8 /mysql-test/t/func_regexp_pcre.test | |
| parent | 01f833569b9d66b7abc1704037354b8e2727e504 (diff) | |
| download | mariadb-git-30ad3354b9786a4db54643b127a88aaa073c0237.tar.gz | |
MDEV-4425 Regexp enhancements
Adding tests with 0x00 characters from
Bug#70470 REGEXP fails to find matches after NUL character
Diffstat (limited to 'mysql-test/t/func_regexp_pcre.test')
| -rw-r--r-- | mysql-test/t/func_regexp_pcre.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_regexp_pcre.test b/mysql-test/t/func_regexp_pcre.test index ff0ee569b1a..7a4be163001 100644 --- a/mysql-test/t/func_regexp_pcre.test +++ b/mysql-test/t/func_regexp_pcre.test @@ -144,6 +144,13 @@ SELECT '1' RLIKE '\\S'; SELECT '!' RLIKE '\\S'; SELECT '.' RLIKE '\\S'; +# checking 0x00 bytes +# Bug#70470 REGEXP fails to find matches after NUL character +SELECT 'abc\0def' REGEXP 'def'; +SELECT 'abc\0def' REGEXP 'abc\\x{00}def'; +SELECT HEX(REGEXP_SUBSTR('abc\0def','abc\\x{00}def')); + + --echo # --echo # Checking REGEXP_REPLACE --echo # |
