Bug #17371 | Unable to dump a schema with invalid views | ||
---|---|---|---|
Submitted: | 14 Feb 2006 11:02 | Modified: | 14 Jul 2006 16:44 |
Reporter: | Kristian Koehntopp | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S1 (Critical) |
Version: | 5.0.18 | OS: | Linux (Linux) |
Assigned to: | Tatiana Azundris Nuernberg | CPU Architecture: | Any |
[14 Feb 2006 11:02]
Kristian Koehntopp
[14 Feb 2006 12:34]
Valeriy Kravchuk
Thank you for a problem report. I would call it a feature request. And this feature will be useful for mysqldump only when it will become possible to create views based on non-existing objects. Not sure, that this will be done ever.
[14 Feb 2006 12:42]
Kristian Koehntopp
Well, the example given is an example that is possible with mysql right now. Dropping "basetable" breaks current backup methods, and does so with no warning or error message on the drop. I consider that a bug, and not a feature request. mysqldump must not break in this situation, or there will be no backup with many customers installations.
[30 May 2006 12:49]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/7015
[26 Jun 2006 18:15]
Tatiana Azundris Nuernberg
merged into 5.0.23 (main)
[14 Jul 2006 16:44]
Paul DuBois
Noted in 5.0.23, 5.1.12 changelogs. mysqldump would not dump views that had become invalid because a table named in the view definition had been dropped. Instead, it quit with an error message. Now you can specify the --force option to cause mysqldump to keep going and write a SQL comment containing the view definition to the dump output.