summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_regexp.test
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-06-19 13:26:39 +0300
committerbell@sanja.is.com.ua <>2004-06-19 13:26:39 +0300
commita19b0f0a8edd650c920a26f51869dfb0af10a382 (patch)
treede0668df4035239b5c431106c9ad56c9a3a43d47 /mysql-test/t/func_regexp.test
parent7997372aa2df75e1ddde34bdb50d5422c61b6fab (diff)
downloadmariadb-git-a19b0f0a8edd650c920a26f51869dfb0af10a382.tar.gz
cleanup for Item_func_regex (Bug #4199)
Diffstat (limited to 'mysql-test/t/func_regexp.test')
-rw-r--r--mysql-test/t/func_regexp.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/func_regexp.test b/mysql-test/t/func_regexp.test
index edfa9afcfa6..1a771d466fa 100644
--- a/mysql-test/t/func_regexp.test
+++ b/mysql-test/t/func_regexp.test
@@ -60,3 +60,16 @@ select _koi8r 0xF7 regexp _koi8r '[[:alpha:]]';
select _latin1'a' regexp _latin1'A' collate latin1_general_ci;
select _latin1'a' regexp _latin1'A' collate latin1_bin;
+
+#
+# regexp cleanup()
+#
+create table t1 (a varchar(40));
+insert into t1 values ('C1'),('C2'),('R1'),('C3'),('R2'),('R3');
+prepare stmt1 from 'select a from t1 where a rlike ? order by a';
+set @a="^C.*";
+execute stmt1 using @a;
+set @a="^R.*";
+execute stmt1 using @a;
+deallocate prepare stmt1;
+drop table t1;