Skip to content

Problems Cannot be Deleted #243

Closed
Closed
@jGleitz

Description

@jGleitz

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions