diff options
author | unknown <serg@serg.mylan> | 2005-06-07 22:43:25 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2005-06-07 22:43:25 +0200 |
commit | 575a46a1efe314b69c392482637af17c97c046e0 (patch) | |
tree | e07960b2ba95d59cf7149bd9b67a4e106472f51f /mysql-test/t/innodb_handler.test | |
parent | 062a1b8b4e09c6de8ab592d37567d40d13798875 (diff) | |
download | mariadb-git-575a46a1efe314b69c392482637af17c97c046e0.tar.gz |
bug#5373: handler READ NEXT w/o HANDLER READ [FIRST]
check table->file->inited to catch incorrect calling sequence.
mysql-test/r/innodb_handler.result:
bug#5373: handler READ NEXT w/o HANDLER READ [FIRST]
mysql-test/t/innodb_handler.test:
bug#5373: handler READ NEXT w/o HANDLER READ [FIRST]
sql/sql_handler.cc:
cleanup: call index_init *correctly*, not every time.
check table->file->inited to catch incorrect calling sequence.
Diffstat (limited to 'mysql-test/t/innodb_handler.test')
-rw-r--r-- | mysql-test/t/innodb_handler.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mysql-test/t/innodb_handler.test b/mysql-test/t/innodb_handler.test index e8c486caf66..65728519e7b 100644 --- a/mysql-test/t/innodb_handler.test +++ b/mysql-test/t/innodb_handler.test @@ -69,6 +69,16 @@ handler t2 read next; handler t2 read last; handler t2 close; +handler t1 open; +handler t1 read a next; # this used to crash as a bug#5373 +handler t1 read a next; +handler t1 close; + +handler t1 open; +handler t1 read a prev; # this used to crash as a bug#5373 +handler t1 read a prev; +handler t1 close; + handler t1 open as t2; handler t2 read first; alter table t1 engine=innodb; |