mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-11777 REGEXP_REPLACE converts utf8mb4 supplementary characters to '?'
use utf8mb4 with PCRE2, not utf8mb3
This commit is contained in:
@ -895,3 +895,12 @@ REGEXP_INSTR('a_kollision', 'o([lm])\\1')
|
||||
REGEXP_INSTR('a_kollision', '(oll)')
|
||||
4
|
||||
SELECT REGEXP_INSTR('a_kollision', 'o([lm])\\1');
|
||||
REGEXP_INSTR('a_kollision', 'o([lm])\\1')
|
||||
4
|
||||
SELECT a FROM (SELECT "aa" a) t WHERE a REGEXP '[0-9]';
|
||||
a
|
||||
#
|
||||
# MDEV-11777 REGEXP_REPLACE converts utf8mb4 supplementary characters to '?'
|
||||
#
|
||||
select hex(regexp_replace(cast(x'F09F9881' as char character set 'utf8mb4'), _utf8mb4'a', _utf8mb4'b')) as Text;
|
||||
Text
|
||||
|
Reference in New Issue
Block a user