1
0
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:
Sergei Golubchik
2023-12-14 15:17:59 +01:00
parent 6538a91e94
commit 022ae42155
4 changed files with 19 additions and 2 deletions

View File

@ -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