diff options
author | unknown <gluh@mysql.com/eagle.(none)> | 2007-11-23 18:21:24 +0400 |
---|---|---|
committer | unknown <gluh@mysql.com/eagle.(none)> | 2007-11-23 18:21:24 +0400 |
commit | 9a34c80e117872b6e564879e0d6cb6dafaa6568a (patch) | |
tree | aa491b760fee621af06703148a57c74eeb943202 /mysql-test/t/drop.test | |
parent | 13f637fbf23c00f25128e0eee69a45c7561447fd (diff) | |
download | mariadb-git-9a34c80e117872b6e564879e0d6cb6dafaa6568a.tar.gz |
Bug#30152 MySQLD crash duing alter table causes DROP DATABASE to FAIL due to temp file
disable decoding of table name if the table is internal temporary table
mysql-test/r/drop.result:
test result
mysql-test/t/drop.test:
test case
sql/sql_db.cc:
check is the name is internal tmp table name
sql/sql_table.cc:
disable decoding of table name if the table is internal temporary table
sql/table.h:
added flag which is true when table name is the name of internal temporary table
Diffstat (limited to 'mysql-test/t/drop.test')
-rw-r--r-- | mysql-test/t/drop.test | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/t/drop.test b/mysql-test/t/drop.test index a1451773e90..a79044436eb 100644 --- a/mysql-test/t/drop.test +++ b/mysql-test/t/drop.test @@ -122,3 +122,16 @@ disconnect addconroot2; connection default; --echo End of 5.0 tests + +# +# Bug#30152 MySQLD crash duing alter table causes DROP DATABASE to FAIL due to temp file +# +create database mysql_test; +create table mysql_test.t1(f1 int); +create table mysql_test.`#sql-347f_7` (f1 int); +create table mysql_test.`#sql-347f_8` (f1 int); +drop table mysql_test.`#sql-347f_8`; +copy_file $MYSQLTEST_VARDIR/master-data/mysql_test/t1.frm $MYSQLTEST_VARDIR/master-data/mysql_test/#sql-347f_6.frm; +drop database mysql_test; + +--echo End of 5.1 tests |