summaryrefslogtreecommitdiff
path: root/mysql-test/t/innodb_mysql.test
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2007-06-20 19:25:44 +0300
committerunknown <monty@narttu.mysql.fi>2007-06-20 19:25:44 +0300
commitcb3ce981c70a0dd12433c9f99994a092f732edaf (patch)
tree5e91a7cececd430129b2b492e116135685288a85 /mysql-test/t/innodb_mysql.test
parentcb5f8fa50b3605f4d4e069330f2ede4eded60394 (diff)
parent9b8b0000cea134136d5a097629a792da593e35e0 (diff)
downloadmariadb-git-cb3ce981c70a0dd12433c9f99994a092f732edaf.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0 mysql-test/r/innodb_mysql.result: SCCS merged mysql-test/t/innodb_mysql.test: SCCS merged
Diffstat (limited to 'mysql-test/t/innodb_mysql.test')
-rw-r--r--mysql-test/t/innodb_mysql.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/mysql-test/t/innodb_mysql.test b/mysql-test/t/innodb_mysql.test
index 0c53705cf71..c2fd19bbaac 100644
--- a/mysql-test/t/innodb_mysql.test
+++ b/mysql-test/t/innodb_mysql.test
@@ -636,4 +636,18 @@ SELECT * FROM t3 WHERE a = 'uk';
DROP TABLE t1,t2,t3;
+#
+# Test bug when trying to drop data file which no InnoDB directory entry
+#
+
+create table t1 (a int) engine=innodb;
+copy_file $MYSQLTEST_VARDIR/master-data/test/t1.frm $MYSQLTEST_VARDIR/master-data/test/t2.frm;
+--error 1146
+select * from t2;
+drop table t1;
+--error 1051
+drop table t2;
+create table t2 (a int);
+drop table t2;
+
--echo End of 5.0 tests