Closed
Description
If I try to delete a problem, DOMJudge warns me:
Warning, this will:
cascade to contestproblem
cascade to event
cascade to submission
cascade to testcase
which sounds reasonable to me. However, if I confirm the deletion, I get this error:
error: SQL error, Error#1451: Cannot delete or update a parent row: a foreign key constraint fails (`domjudge`.`judging_run`, CONSTRAINT `judging_run_ibfk_1` FOREIGN KEY (`testcaseid`) REFERENCES `testcase` (`testcaseid`)), query: 'DELETE FROM problem WHERE `probid` = "18" LIMIT 1'
If I understand this right, the problem cannot be deleted because it would result in database constraints of judging runs being violated. But as the deletion cascades to submissions anyway, this judging runs could be deleted, too.