summaryrefslogtreecommitdiff
path: root/mysql-test/t/handler.test
diff options
context:
space:
mode:
authorunknown <ram@mysql.r18.ru>2003-07-04 17:15:16 +0500
committerunknown <ram@mysql.r18.ru>2003-07-04 17:15:16 +0500
commit30341167c50dd59ecdd11100b0d5e2fec14ca02b (patch)
tree342ce2825ff481ad0d90c2f76758b63b77613fc7 /mysql-test/t/handler.test
parentb22a79763179f5929a0030da40e0c23f77f33c5a (diff)
downloadmariadb-git-30341167c50dd59ecdd11100b0d5e2fec14ca02b.tar.gz
fix and test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows
mysql-test/r/handler.result: test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows mysql-test/t/handler.test: test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows sql/sql_handler.cc: fix for the bug #787: HANDLER without INDEX doesn't work with deleted rows
Diffstat (limited to 'mysql-test/t/handler.test')
-rw-r--r--mysql-test/t/handler.test15
1 files changed, 15 insertions, 0 deletions
diff --git a/mysql-test/t/handler.test b/mysql-test/t/handler.test
index 39ceab7ab22..737b220c805 100644
--- a/mysql-test/t/handler.test
+++ b/mysql-test/t/handler.test
@@ -81,6 +81,21 @@ handler t2 read first;
drop table t1;
#
+# test case for the bug #787
+#
+
+create table t1 (a int);
+insert into t1 values (1),(2),(3),(4),(5),(6);
+delete from t1 limit 2;
+handler t1 open;
+handler t1 read first;
+handler t1 read first limit 1,1;
+handler t1 read first limit 2,2;
+delete from t1 limit 3;
+handler t1 read first;
+drop table t1;
+
+#
#test for #751
#
create table t1(a int, index(a));