diff options
author | Alexander Barkov <bar@mnogosearch.org> | 2013-10-08 18:25:17 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mnogosearch.org> | 2013-10-08 18:25:17 +0400 |
commit | 1bcd2bebc69163c541baa548f1204ccd1b830d25 (patch) | |
tree | d3ee75906d99188903b87662730d415ded4a1b0e /mysql-test/r/func_regexp_pcre.result | |
parent | 43c09c15ff6d07e70d3fb12f7eea47dd85ecd992 (diff) | |
download | mariadb-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.result | 6 |
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 |