Bug #14854 | Cannot restore one table out of merge table collection | ||
---|---|---|---|
Submitted: | 11 Nov 2005 9:29 | Modified: | 11 Nov 2005 10:08 |
Reporter: | Dino Tsoumakis | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S3 (Non-critical) |
Version: | MySQL-server-4.1.14-0.i386.rpm | OS: | Linux (SuSE 8.1 (2.4.21-273-default)) |
Assigned to: | CPU Architecture: | Any |
[11 Nov 2005 9:29]
Dino Tsoumakis
[11 Nov 2005 9:52]
Valeriy Kravchuk
Thank you for a problem report. For me it looks like not a bug, but intended and documented behaviour. Read the manual (http://dev.mysql.com/doc/refman/4.1/en/merge-table-problems.html), please: "You cannot use DROP TABLE, ALTER TABLE, DELETE FROM without a WHERE clause, REPAIR TABLE, TRUNCATE TABLE, OPTIMIZE TABLE, or ANALYZE TABLE on any of the tables that are mapped into an open MERGE table. If you do so, the MERGE table may still refer to the original table, which yields unexpected results. The easiest way to work around this deficiency is to issue a FLUSH TABLES statement prior to performing any of these operations to ensure that no MERGE tables remain open." Try to issue FLUSH TABLES before dropping t1, and then restore it. Inform about the results.
[11 Nov 2005 10:08]
Dino Tsoumakis
I'm sorry for the bug report. You are right. I forgot to do a 'flush tables'. If I do that, the restore works fine.