mySQL 5.0.11 sources for tomato
[tomato.git] / release / src / router / mysql / mysql-test / t / partition_not_blackhole.test
blob7352aeaa230e023c4ee553c4c6caec8d262813a2
1 --source include/have_partition.inc
2 --source include/not_blackhole.inc
4 --disable_warnings
5 DROP TABLE IF EXISTS t1;
6 --enable_warnings
8 let $MYSQLD_DATADIR= `SELECT @@datadir`;
10 --echo #
11 --echo # Bug#46086: crash when dropping a partitioned table and
12 --echo #            the original engine is disabled
13 --echo # Copy a .frm and .par file which was created with:
14 --echo # create table `t1` (`id` int primary key) engine=blackhole
15 --echo # partition by key () partitions 1;
16 --copy_file std_data/parts/t1_blackhole.frm $MYSQLD_DATADIR/test/t1.frm
17 --copy_file std_data/parts/t1_blackhole.par $MYSQLD_DATADIR/test/t1.par
18 SHOW TABLES;
19 --replace_result $MYSQLD_DATADIR ./
20 --error ER_NOT_FORM_FILE
21 SHOW CREATE TABLE t1;
22 --error ER_BAD_TABLE_ERROR
23 DROP TABLE t1;
24 --list_files $MYSQLD_DATADIR/test t1*
25 --remove_file $MYSQLD_DATADIR/test/t1.frm
26 --remove_file $MYSQLD_DATADIR/test/t1.par