Bug #26480 | on update cascade crashes when a foreign key belongs to the primary key | ||
---|---|---|---|
Submitted: | 19 Feb 2007 17:31 | Modified: | 12 Apr 2007 14:20 |
Reporter: | Juan Luis Pérez Estrella | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 5.0 | OS: | Windows (Windows XP) |
Assigned to: | CPU Architecture: | Any | |
Tags: | foreign key, on update cascade |
[19 Feb 2007 17:31]
Juan Luis Pérez Estrella
[19 Feb 2007 17:56]
MySQL Verification Team
Thank you for the bug report. Which exactly server 5.0 are you using? and what you meant with 'on update cascade crashes' the server crashes?. Thanks in advance.
[20 Mar 2007 0:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[12 Apr 2007 14:20]
Valeriy Kravchuk
Thjis is not a bug, according to the manual (http://dev.mysql.com/doc/refman/5.0/en/innodb-foreign-key-constraints.html): "Deviation from SQL standards: If ON UPDATE CASCADE or ON UPDATE SET NULL recurses to update the same table it has previously updated during the cascade, it acts like RESTRICT. This means that you cannot use self-referential ON UPDATE CASCADE or ON UPDATE SET NULL operations. This is to prevent infinite loops resulting from cascaded updates. A self-referential ON DELETE SET NULL, on the other hand, is possible, as is a self-referential ON DELETE CASCADE. Cascading operations may not be nested more than 15 levels deep."