1--source include/have_partition.inc
2--source include/not_blackhole.inc
3
4--disable_warnings
5DROP TABLE IF EXISTS t1;
6--enable_warnings
7
8let $MYSQLD_DATADIR= `SELECT @@datadir`;
9
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
18SHOW TABLES;
19--replace_result $MYSQLD_DATADIR ./
20--error ER_FAILED_READ_FROM_PAR_FILE
21SHOW CREATE TABLE t1;
22
23# The replace is needed for Solaris
24--replace_result "Not owner" "Operation not permitted"
25--error ER_GET_ERRNO
26DROP TABLE t1;
27--list_files $MYSQLD_DATADIR/test t1*
28--remove_file $MYSQLD_DATADIR/test/t1.frm
29--remove_file $MYSQLD_DATADIR/test/t1.par
30