• Alexander Barkov's avatar
    MDEV-4425 Regexp enhancements · 1bcd2beb
    Alexander Barkov authored
    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.
    1bcd2beb
item_cmpfunc.h 63.2 KB