innodb.test 702 Bytes
Newer Older
unknown's avatar
unknown committed
1 2 3 4 5 6 7
# t/handler_innodb.test
#
# test of HANDLER ...
#
# Last update:
# 2006-07-31 ML test refactored (MySQL 5.1)
#               code of t/handler.test and t/innodb_handler.test united
8
#               main testing code put into handler.inc
unknown's avatar
unknown committed
9 10 11 12
#               rename t/innodb_handler.test to t/handler_innodb.test
#

--source include/have_innodb.inc
13

unknown's avatar
unknown committed
14 15
let $engine_type= InnoDB;

16 17
--source init.inc
--source handler.inc
18 19 20 21 22 23 24 25 26 27 28

#
# LP#697610 ha_index_prev(uchar*): Assertion `inited==INDEX'
#

CREATE TABLE t1 (f1 integer, f2 integer, primary key (f1), key (f2)) engine=innodb;
INSERT INTO t1 VALUES (1,1),(2,2),(3,3);
HANDLER t1 OPEN;
HANDLER t1 READ FIRST WHERE f2 <= 1;
HANDLER t1 READ `PRIMARY` PREV;
DROP TABLE t1;