You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Review #2311 for code improvements: ON DELETE / ON UPDATE actions accepted but not applied #2656
This is not a bug report. It is an invitation to look at #2311 again, because it adds syntax without the behaviour behind it. The goal is to understand the change and decide whether anything should be improved. The notes below come from a quick read of the diff and one check, not from a full analysis.
The concerns:
Accepted and then ignored. The grammar now accepts ON DELETE / ON UPDATE with CASCADE, SET NULL, SET DEFAULT, RESTRICT and NO ACTION, and stores them on the foreign key (ondelete, onupdate). Nothing reads them. Checked on develop: with pid INT REFERENCES p(id) ON DELETE CASCADE, deleting the parent row succeeds and the child row stays, now pointing to nothing. A user who writes ON DELETE CASCADE reasonably expects the cascade.
Activity