summaryrefslogtreecommitdiff
path: root/mysql-test/t/handler.test
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2001-04-07 00:18:33 +0200
committerunknown <serg@serg.mysql.com>2001-04-07 00:18:33 +0200
commit7006b51823cc6c1f69f42f3c1599385414e6c5b4 (patch)
treeea2aec8b968cfcac8454af4f7651fb7718a0a3fd /mysql-test/t/handler.test
parent50007b28e9d472c363ec3e516975769567fb99ef (diff)
downloadmariadb-git-7006b51823cc6c1f69f42f3c1599385414e6c5b4.tar.gz
Preliminary commit of HANDLER syntax (w/o LIMIT or column-list)
Diffstat (limited to 'mysql-test/t/handler.test')
-rw-r--r--mysql-test/t/handler.test32
1 files changed, 32 insertions, 0 deletions
diff --git a/mysql-test/t/handler.test b/mysql-test/t/handler.test
new file mode 100644
index 00000000000..18f1d37fee4
--- /dev/null
+++ b/mysql-test/t/handler.test
@@ -0,0 +1,32 @@
+#
+# test of HANDLER ...
+#
+
+drop table if exists t1;
+create table t1 (a int, b char(10), key a(a));
+insert into t1 values
+(14,"aaa"),(15,"bbb"),(16,"ccc"),
+(17,"ddd"),(18,"eee"),(19,"fff"),
+(20,"ggg"),(21,"hhh"),(22,"iii");
+handler t1 open;
+handler t1 read a first;
+handler t1 read a next;
+handler t1 read a next;
+handler t1 read a prev;
+handler t1 read a last;
+handler t1 read a prev;
+handler t1 read a prev;
+
+handler t1 read a first;
+handler t1 read a prev;
+
+handler t1 read a last;
+handler t1 read a prev;
+handler t1 read a next;
+handler t1 read a next;
+
+handler t1 read a=(15);
+
+handler t1 close;
+drop table if exists t1;
+