summaryrefslogtreecommitdiff
path: root/mysql-test/r/func_regexp_pcre.result
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-10-08 18:25:17 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-10-08 18:25:17 +0400
commit1bcd2bebc69163c541baa548f1204ccd1b830d25 (patch)
treed3ee75906d99188903b87662730d415ded4a1b0e /mysql-test/r/func_regexp_pcre.result
parent43c09c15ff6d07e70d3fb12f7eea47dd85ecd992 (diff)
downloadmariadb-git-1bcd2bebc69163c541baa548f1204ccd1b830d25.tar.gz
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.
Diffstat (limited to 'mysql-test/r/func_regexp_pcre.result')
-rw-r--r--mysql-test/r/func_regexp_pcre.result6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/r/func_regexp_pcre.result b/mysql-test/r/func_regexp_pcre.result
index 4ae66e24eda..ebbdedc6999 100644
--- a/mysql-test/r/func_regexp_pcre.result
+++ b/mysql-test/r/func_regexp_pcre.result
@@ -234,6 +234,12 @@ class ch ch RLIKE class
\p{Tamil} 㐗 0
\p{Tamil} 갷 0
DROP TABLE t1, t2;
+SELECT 0xFF RLIKE '\\w';
+0xFF RLIKE '\\w'
+0
+SELECT 0xFF RLIKE '(*UCP)\\w';
+0xFF RLIKE '(*UCP)\\w'
+1
SELECT '\n' RLIKE '(*CR)';
'\n' RLIKE '(*CR)'
1