| Bug #41298 | Trigges "before/after delete" do not fire when deletion caused by fk-constraint | ||
|---|---|---|---|
| Submitted: | 8 Dec 2008 11:28 | Modified: | 24 Aug 2009 19:55 |
| Reporter: | Robert Senger | Email Updates: | |
| Status: | Duplicate | Impact on me: | |
| Category: | MySQL Server: Stored Routines | Severity: | S3 (Non-critical) |
| Version: | 5.1.30 | OS: | Linux |
| Assigned to: | CPU Architecture: | Any | |
[8 Dec 2008 11:28]
Robert Senger
[8 Dec 2008 12:00]
Valeriy Kravchuk
This is known and documented limitation. Read http://dev.mysql.com/doc/refman/5.1/en/stored-program-restrictions.html: "Triggers currently are not activated by foreign key actions."
[22 Apr 2009 1:01]
Paul Whipp
This is a pretty fundamental problem with triggers. It means that they only 'sometimes' do what the developer would invariably intend. I believe this bug should be raised in terms of its severity because it prevents robust software development using triggers to maintain integrity (e.g. where a row in a 'parent' table should be deleted only when there are no remaining related rows in a 'child' table).
[24 Aug 2009 19:55]
Omer Barnir
This bug is a duplicate of bug#11472
