summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-05-17 16:45:00 +0300
committerunknown <monty@hundin.mysql.fi>2002-05-17 16:45:00 +0300
commit387e77d104887d45a4574a9bd1b826cfa20f01c1 (patch)
tree138e0662f05b06e5000a3e7e6fa8383eea492a3b /mysql-test
parent66f426c0635d16f7f594f6bf867e13e5cba18500 (diff)
downloadmariadb-git-387e77d104887d45a4574a9bd1b826cfa20f01c1.tar.gz
Optimize LIKE with turbo-boyer-more algoritm
Docs/manual.texi: Added info about LIKE optimization mysql-test/r/func_like.result: Test of new LIKE optimization mysql-test/t/func_like.test: Test of new LIKE optimization
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;