[MDEV-19402] Invoke triggers for foreign key cascade actions Created: 2019-05-07 Updated: 2023-11-05 Resolved: 2023-11-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Triggers |
| Fix Version/s: | N/A |
| Type: | Task | Priority: | Major |
| Reporter: | Adrien Crivelli | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 1 |
| Labels: | trigger | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
The documentation does indeed clearly explain the existing behavior:
However I still expect triggers to be activated even by foreign key actions, and the documentation should be updated to remove that limitation. This has been a longstanding issue in MySQL as well: https://bugs.mysql.com/bug.php?id=11472 It can be reproduced with the following code:
The actual output will be:
But the expected output is;
|