summaryrefslogtreecommitdiff
path: root/mysql-test/t/func_like.test
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2003-03-02 14:07:32 +0100
committerunknown <serg@serg.mysql.com>2003-03-02 14:07:32 +0100
commitc5cd20fe8f37b4ff693bdb9cb24e8cf7d1b59194 (patch)
tree3bbe3ed618acb5ea8d0a6fbfde522de0a4b5efc1 /mysql-test/t/func_like.test
parenta2cc82182bbebb24a75e2d54d5361b3932416b9c (diff)
downloadmariadb-git-c5cd20fe8f37b4ff693bdb9cb24e8cf7d1b59194.tar.gz
optimizer should check for "field LIKE const" not "field like STRING"
BitKeeper/etc/ignore: Added configure.lineno innobase/configure.lineno to the ignore list
Diffstat (limited to 'mysql-test/t/func_like.test')
-rw-r--r--mysql-test/t/func_like.test11
1 files changed, 7 insertions, 4 deletions
diff --git a/mysql-test/t/func_like.test b/mysql-test/t/func_like.test
index 09746fcc817..a5d1193fd74 100644
--- a/mysql-test/t/func_like.test
+++ b/mysql-test/t/func_like.test
@@ -5,10 +5,13 @@
drop table if exists t1;
create table t1 (a varchar(10), key(a));
insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test");
-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";
+explain select * from t1 where a like 'abc%';
+explain select * from t1 where a like concat('abc','%');
+select * from t1 where a like "abc%";
+select * from t1 where a like concat("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 Turbo Boyer-Moore code