Bug #38710 | Foreign keys dropped after attempting to change cascade. | ||
---|---|---|---|
Submitted: | 11 Aug 2008 8:29 | Modified: | 13 Oct 2008 8:11 |
Reporter: | David Sanders (Candidate Quality Contributor) | Email Updates: | |
Status: | Won't fix | Impact on me: | |
Category: | MySQL Query Browser | Severity: | S3 (Non-critical) |
Version: | 1.2.12 | OS: | Windows (XP SP3) |
Assigned to: | Mike Lischke | CPU Architecture: | Any |
[11 Aug 2008 8:29]
David Sanders
[11 Aug 2008 8:43]
David Sanders
This may be related to Bug #28885
[19 Aug 2008 16:23]
MySQL Verification Team
Thank you for the bug report.
[13 Oct 2008 8:11]
Mike Lischke
I'm afraid currently we can't do anything about this. The problem here is that we'd either need something like a syntax check by the server before applying any change (so we would not drop anything if there is an error) or have transactional DDL or know the reverse operation to "undo" the drop, which is necessary before creating the new FK. Unfortunately, none of them are available to QB so when you decide to execute the SQL you get shown in the popup when you click "Apply Changes" then two commands are actually executed: a drop for the old key and the alter command for the new key. Hence if the second command fails the first one is still already done and the key is gone. So check carefully what gets executed. QB is not a tool to limit a user but can do some serious damage if used wrongly. Since the QB features will be included into MySQL Workbench at a later point in time and we have much better parsing capabilities there, we can then at least "undo" the drop operation.
[13 Mar 2014 13:36]
Omer Barnir
This bug is not scheduled to be fixed at this time.