summaryrefslogtreecommitdiff
path: root/sql/sql_db.cc
diff options
context:
space:
mode:
authorunknown <gluh@mysql.com/eagle.(none)>2007-11-23 18:21:24 +0400
committerunknown <gluh@mysql.com/eagle.(none)>2007-11-23 18:21:24 +0400
commit9a34c80e117872b6e564879e0d6cb6dafaa6568a (patch)
treeaa491b760fee621af06703148a57c74eeb943202 /sql/sql_db.cc
parent13f637fbf23c00f25128e0eee69a45c7561447fd (diff)
downloadmariadb-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 'sql/sql_db.cc')
-rw-r--r--sql/sql_db.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_db.cc b/sql/sql_db.cc
index abbf2131957..88902e65a42 100644
--- a/sql/sql_db.cc
+++ b/sql/sql_db.cc
@@ -1111,6 +1111,7 @@ static long mysql_rm_known_files(THD *thd, MY_DIR *dirp, const char *db,
VOID(filename_to_tablename(file->name, table_list->table_name,
strlen(file->name) + 1));
table_list->alias= table_list->table_name; // If lower_case_table_names=2
+ table_list->internal_tmp_table= is_prefix(file->name, tmp_file_prefix);
/* Link into list */
(*tot_list_next)= table_list;
tot_list_next= &table_list->next_local;