提交 cdaf7187 authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Move tests for REGEXP_LIKE and REGEXP_REPLACE to own scripts

上级 b5341bb5
......@@ -2,3 +2,18 @@
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
call regexp_replace('x', 'x', '\');
> exception
CALL REGEXP_REPLACE('abckaboooom', 'o+', 'o');
> 'abckabom'
> ----------
> abckabom
> rows: 1
select regexp_replace('Sylvain', 'S..', 'TOTO', 'mni') as X;
> X
> --------
> TOTOvain
> rows: 1
......@@ -2,3 +2,17 @@
-- and the EPL 1.0 (http://h2database.com/html/license.html).
-- Initial Developer: H2 Group
--
call select 1 from dual where regexp_like('x', 'x', '\');
> exception
select x from dual where REGEXP_LIKE('A', '[a-z]', 'i');
> X
> -
> 1
> rows: 1
select x from dual where REGEXP_LIKE('A', '[a-z]', 'c');
> X
> -
> rows: 0
......@@ -164,12 +164,6 @@ select 1 from test group by x;
drop table test;
> ok
call regexp_replace('x', 'x', '\');
> exception
call select 1 from dual where regexp_like('x', 'x', '\');
> exception
select * from dual where x = x + 1 or x in(2, 0);
> X
> -
......@@ -2109,29 +2103,6 @@ drop table test;
set autocommit true;
> ok
CALL REGEXP_REPLACE('abckaboooom', 'o+', 'o');
> 'abckabom'
> ----------
> abckabom
> rows: 1
select x from dual where REGEXP_LIKE('A', '[a-z]', 'i');
> X
> -
> 1
> rows: 1
select x from dual where REGEXP_LIKE('A', '[a-z]', 'c');
> X
> -
> rows: 0
select regexp_replace('Sylvain', 'S..', 'TOTO', 'mni') as X;
> X
> --------
> TOTOvain
> rows: 1
SELECT 'Hello' ~ 'He.*' T1, 'HELLO' ~ 'He.*' F2, CAST('HELLO' AS VARCHAR_IGNORECASE) ~ 'He.*' T3;
> T1 F2 T3
> ---- ----- ----
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论