diff options
author | serg@serg.mysql.com <> | 2002-08-21 20:55:34 +0000 |
---|---|---|
committer | serg@serg.mysql.com <> | 2002-08-21 20:55:34 +0000 |
commit | 99a954f405a55c88f759d309da775739d3f8fd08 (patch) | |
tree | 077077879672f832b6b343af53b8f4d0d8375553 /mysql-test/t | |
parent | 8160291c6e8d1aff6d4fbeacc5cc625a49d3123d (diff) | |
download | mariadb-git-99a954f405a55c88f759d309da775739d3f8fd08.tar.gz |
InnoDB support for HANDLER
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/innodb.test | 8 | ||||
-rw-r--r-- | mysql-test/t/innodb_handler.test | 69 |
2 files changed, 70 insertions, 7 deletions
diff --git a/mysql-test/t/innodb.test b/mysql-test/t/innodb.test index 0ddd4d357d0..e6d57899082 100644 --- a/mysql-test/t/innodb.test +++ b/mysql-test/t/innodb.test @@ -578,17 +578,11 @@ explain select a,b,c from t1; drop table t1; # -# Check describe & handler +# Check describe # create table t1 (t int not null default 1, key (t)) type=innodb; desc t1; ---error 1031 -handler t1 open t1; ---error 1109 -handler t1 read t first; ---error 1109 -handler t1 close; drop table t1; # diff --git a/mysql-test/t/innodb_handler.test b/mysql-test/t/innodb_handler.test new file mode 100644 index 00000000000..2f53de3beb7 --- /dev/null +++ b/mysql-test/t/innodb_handler.test @@ -0,0 +1,69 @@ +-- source include/have_innodb.inc + +# +# test of HANDLER ... +# + +drop table if exists t1; +create table t1 (a int, b char(10), key a(a), key b(a,b)) type=innodb; +insert into t1 values +(17,"ddd"),(18,"eee"),(19,"fff"),(19,"yyy"), +(14,"aaa"),(15,"bbb"),(16,"ccc"),(16,"xxx"), +(20,"ggg"),(21,"hhh"),(22,"iii"); +handler t1 open as t2; +handler t2 read a first; +handler t2 read a next; +handler t2 read a next; +handler t2 read a prev; +handler t2 read a last; +handler t2 read a prev; +handler t2 read a prev; + +handler t2 read a first; +handler t2 read a prev; + +handler t2 read a last; +handler t2 read a prev; +handler t2 read a next; +handler t2 read a next; + +handler t2 read a=(15); +handler t2 read a=(16); + +!$1070 handler t2 read a=(19,"fff"); + +handler t2 read b=(19,"fff"); +handler t2 read b=(19,"yyy"); +handler t2 read b=(19); + +!$1109 handler t1 read a last; + +handler t2 read a=(11); +handler t2 read a>=(11); + +handler t2 read a=(18); +handler t2 read a>=(18); +handler t2 read a>(18); +handler t2 read a<=(18); +handler t2 read a<(18); + +handler t2 read a first limit 5; +handler t2 read a next limit 3; +handler t2 read a prev limit 10; + +handler t2 read a>=(16) limit 4; +handler t2 read a>=(16) limit 2,2; +handler t2 read a last limit 3; + +handler t2 read a=(19); +handler t2 read a=(19) where b="yyy"; + +handler t2 read first; +handler t2 read next; +alter table t1 type=innodb; +handler t2 read next; +!$1064 handler t2 read last; + +handler t2 close; +drop table if exists t1; + |