You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-29 08:21:15 +03:00
utf-8 support for regexp functions
This commit is contained in:
@ -150,5 +150,33 @@ SELECT t1_TIME, REGEXP_INSTR(t1_TIME, '22$') FROM t1 ORDER BY 1;
|
||||
SELECT t1_TIME, REGEXP_REPLACE(t1_TIME, '(59)+', 'KittyCat') FROM t1 ORDER BY 1;
|
||||
SELECT t1_TIME, REGEXP_REPLACE(t1_TIME, '22$', 'KittyCat') FROM t1 ORDER BY 1;
|
||||
|
||||
|
||||
CREATE TABLE t2 (hello text) engine columnstore;
|
||||
INSERT INTO t2 values('こんにちは');
|
||||
INSERT INTO t2 values('привет');
|
||||
INSERT INTO t2 values('Γεια');
|
||||
INSERT INTO t2 values('სალამი');
|
||||
|
||||
SELECT hello, hello regexp 'ん.ち' from t2;
|
||||
SELECT hello, hello regexp 'и.е' from t2;
|
||||
SELECT hello, hello regexp 'ε.α' from t2;
|
||||
SELECT hello, hello regexp 'ა.ა' from t2;
|
||||
|
||||
SELECT hello, regexp_substr(hello, 'ん.ち') from t2;
|
||||
SELECT hello, regexp_substr(hello, 'и.е') from t2;
|
||||
SELECT hello, regexp_substr(hello, 'ε.α') from t2;
|
||||
SELECT hello, regexp_substr(hello, 'ა.ა') from t2;
|
||||
|
||||
SELECT hello, regexp_instr(hello, 'ん.ち') from t2;
|
||||
SELECT hello, regexp_instr(hello, 'и.е') from t2;
|
||||
SELECT hello, regexp_instr(hello, 'ε.α') from t2;
|
||||
SELECT hello, regexp_instr(hello, 'ა.ა') from t2;
|
||||
|
||||
SELECT hello, regexp_replace(hello, 'ん.ち', 'Достоевский') from t2;
|
||||
SELECT hello, regexp_replace(hello, 'и.е', 'Достоевский') from t2;
|
||||
SELECT hello, regexp_replace(hello, 'ε.α', 'Достоевский') from t2;
|
||||
SELECT hello, regexp_replace(hello, 'ა.ა', 'Достоевский') from t2;
|
||||
|
||||
|
||||
# Clean UP
|
||||
DROP DATABASE mcs228_db;
|
||||
|
Reference in New Issue
Block a user