summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2002-05-17 16:45:00 +0300
committermonty@hundin.mysql.fi <>2002-05-17 16:45:00 +0300
commitce1353a4541243c73d1c8b45e44717d577c8cf5a (patch)
tree138e0662f05b06e5000a3e7e6fa8383eea492a3b /mysql-test
parent0c5c517db61c8d1e0753a310ec38d0c6b41827b2 (diff)
downloadmariadb-git-ce1353a4541243c73d1c8b45e44717d577c8cf5a.tar.gz
Optimize LIKE with turbo-boyer-more algoritm
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/func_like.result11
-rw-r--r--mysql-test/t/func_like.test8
2 files changed, 19 insertions, 0 deletions
diff --git a/mysql-test/r/func_like.result b/mysql-test/r/func_like.result
index 796674b5fa4..c2085ba12da 100644
--- a/mysql-test/r/func_like.result
+++ b/mysql-test/r/func_like.result
@@ -15,4 +15,15 @@ test
select * from t1 where a like "te_t";
a
test
+select * from t1 where a like "%a%";
+a
+a
+abc
+abcd
+select * from t1 where a like "%abcd%";
+a
+abcd
+select * from t1 where a like "%abc\d%";
+a
+abcd
drop table t1;
diff --git a/mysql-test/t/func_like.test b/mysql-test/t/func_like.test
index e0f1f0db9ce..6c0313d0437 100644
--- a/mysql-test/t/func_like.test
+++ b/mysql-test/t/func_like.test
@@ -9,4 +9,12 @@ select * from t1 where a like "abc%";
select * from t1 where a like "ABC%";
select * from t1 where a like "test%";
select * from t1 where a like "te_t";
+
+#
+# The following will test the boyer-more code
+#
+select * from t1 where a like "%a%";
+select * from t1 where a like "%abcd%";
+select * from t1 where a like "%abc\d%";
+
drop table t1;