summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authordlenev@mysql.com <>2006-03-24 14:58:18 +0300
committerdlenev@mysql.com <>2006-03-24 14:58:18 +0300
commit891e9424f208b5b6a7464f84b399a8fc9def9472 (patch)
tree77e94372a9a9d94c408d2d5169ea1dd691186fcc /sql/sql_table.cc
parentcab060d2e2fc6de1f64e331d4d9d53c64697beb0 (diff)
downloadmariadb-git-891e9424f208b5b6a7464f84b399a8fc9def9472.tar.gz
Fix for bug #18153 "ALTER/OPTIMIZE/REPAIR on transactional tables corrupt
triggers". Applying ALTER/OPTIMIZE/REPAIR TABLE statements to transactional table or to table of any type on Windows caused disappearance of its triggers. Bug was introduced in 5.0.19 by my fix for bug #13525 "Rename table does not keep info of triggers" (see comment for sql_table.cc for more info). .
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc1
1 files changed, 0 insertions, 1 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 0bae714d7dc..d7a37e67cd0 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -3831,7 +3831,6 @@ bool mysql_alter_table(THD *thd,char *new_db, char *new_name,
Win32 and InnoDB can't drop a table that is in use, so we must
close the original table at before doing the rename
*/
- table_name=thd->strdup(table_name); // must be saved
close_cached_table(thd, table);
table=0; // Marker that table is closed
}