diff options
author | unknown <serg@serg.mysql.com> | 2003-03-02 14:07:32 +0100 |
---|---|---|
committer | unknown <serg@serg.mysql.com> | 2003-03-02 14:07:32 +0100 |
commit | c5cd20fe8f37b4ff693bdb9cb24e8cf7d1b59194 (patch) | |
tree | 3bbe3ed618acb5ea8d0a6fbfde522de0a4b5efc1 /mysql-test/r/func_like.result | |
parent | a2cc82182bbebb24a75e2d54d5361b3932416b9c (diff) | |
download | mariadb-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/r/func_like.result')
-rw-r--r-- | mysql-test/r/func_like.result | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/r/func_like.result b/mysql-test/r/func_like.result index c2085ba12da..f923c16b2ac 100644 --- a/mysql-test/r/func_like.result +++ b/mysql-test/r/func_like.result @@ -1,10 +1,20 @@ drop table if exists t1; create table t1 (a varchar(10), key(a)); insert into t1 values ("a"),("abc"),("abcd"),("hello"),("test"); +explain select * from t1 where a like 'abc%'; +table type possible_keys key key_len ref rows Extra +t1 range a a 11 NULL 1 Using where; Using index +explain select * from t1 where a like concat('abc','%'); +table type possible_keys key key_len ref rows Extra +t1 range a a 11 NULL 1 Using where; Using index select * from t1 where a like "abc%"; a abc abcd +select * from t1 where a like concat("abc","%"); +a +abc +abcd select * from t1 where a like "ABC%"; a abc |