Skip to content

constraint expression from parent type is not checked on link target deletion #2232

Closed
@dermetfan

Description

@dermetfan
  • EdgeDB Version: 1.0-alpha.7+g85a3931a7.d20210113 from Docker Hub
  • OS Version: Official Docker image running on NixOS 21.03pre-git (x86_64)

Steps to Reproduce:

  1. INSERT B { value := (INSERT C) };
  2. DELETE C;

Step 2 should throw an error because the constraint is no longer satisfied.

Schema:

type A {
	link value -> C {
		on target delete allow;
	};

	constraint expression on (
		EXISTS .value
	);
}

type B extending A {}

type C {}

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions