diff options
author | unknown <bell@sanja.is.com.ua> | 2004-06-19 13:26:39 +0300 |
---|---|---|
committer | unknown <bell@sanja.is.com.ua> | 2004-06-19 13:26:39 +0300 |
commit | 06e24a66ee615eab7806a313e831896f28abe8a4 (patch) | |
tree | de0668df4035239b5c431106c9ad56c9a3a43d47 /mysql-test/r/func_regexp.result | |
parent | ae8e4b86f271b1d04b752878a60552aec36c6151 (diff) | |
download | mariadb-git-06e24a66ee615eab7806a313e831896f28abe8a4.tar.gz |
cleanup for Item_func_regex (Bug #4199)
mysql-test/r/func_regexp.result:
test of cleaning regex in PS
mysql-test/t/func_regexp.test:
test of cleaning regex in PS
sql/item_cmpfunc.cc:
cleanup for Item_func_regex
sql/item_cmpfunc.h:
cleanup for Item_func_regex
Diffstat (limited to 'mysql-test/r/func_regexp.result')
-rw-r--r-- | mysql-test/r/func_regexp.result | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mysql-test/r/func_regexp.result b/mysql-test/r/func_regexp.result index 7f977e2782b..8228d6982d3 100644 --- a/mysql-test/r/func_regexp.result +++ b/mysql-test/r/func_regexp.result @@ -81,3 +81,20 @@ _latin1'a' regexp _latin1'A' collate latin1_general_ci select _latin1'a' regexp _latin1'A' collate latin1_bin; _latin1'a' regexp _latin1'A' collate latin1_bin 0 +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; +a +C1 +C2 +C3 +set @a="^R.*"; +execute stmt1 using @a; +a +R1 +R2 +R3 +deallocate prepare stmt1; +drop table t1; |