1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

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
This commit is contained in:
gluh@mysql.com/eagle.(none)
2007-11-23 18:21:24 +04:00
parent 07051cc21f
commit d380a8fa9c
5 changed files with 23 additions and 2 deletions

View File

@@ -1663,8 +1663,9 @@ int mysql_rm_table_part2(THD *thd, TABLE_LIST *tables, bool if_exists,
}
alias= (lower_case_table_names == 2) ? table->alias : table->table_name;
/* remove .frm file and engine files */
path_length= build_table_filename(path, sizeof(path),
db, alias, reg_ext, 0);
path_length= build_table_filename(path, sizeof(path), db, alias, reg_ext,
table->internal_tmp_table ?
FN_IS_TMP : 0);
}
if (drop_temporary ||
(table_type == NULL &&