=== modified file 'mysql-test/r/myisampack.result' --- mysql-test/r/myisampack.result 2012-06-17 12:34:39 +0000 +++ mysql-test/r/myisampack.result 2014-03-11 08:08:04 +0000 @@ -150,3 +150,10 @@ CHECK TABLE t1; Table Op Msg_type Msg_text test.t1 check status OK DROP TABLE t1; +# +# BUG#11751736: DROP DATABASE STATEMENT SHOULD REMOVE .OLD SUFFIX FROM +# DATABASE DIRECTORY +# +CREATE DATABASE db1; +CREATE TABLE db1.t1(c1 INT) ENGINE=MyISAM; +DROP DATABASE db1; === modified file 'mysql-test/t/myisampack.test' --- mysql-test/t/myisampack.test 2012-01-13 14:50:02 +0000 +++ mysql-test/t/myisampack.test 2014-03-11 08:08:04 +0000 @@ -267,3 +267,15 @@ FLUSH TABLE t1; --exec $MYISAMCHK -soq $MYSQLD_DATADIR/test/t1 CHECK TABLE t1; DROP TABLE t1; + +--echo # +--echo # BUG#11751736: DROP DATABASE STATEMENT SHOULD REMOVE .OLD SUFFIX FROM +--echo # DATABASE DIRECTORY +--echo # +CREATE DATABASE db1; +CREATE TABLE db1.t1(c1 INT) ENGINE=MyISAM; +## Added -f to force pack db in any case regardless the size of database +## being packed +let $MYSQLD_DATADIR = `SELECT @@datadir`; +--exec $MYISAMPACK -b -f $MYSQLD_DATADIR/db1/t1 +DROP DATABASE db1;