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
Term: bar
Term: foo
Concept Type: Integer (Type)
Fact Type: bar taints foo
Necessity: each bar taints at least one foo
Necessity: each bar taints a foo that is greater than 10.
sbvr-compiler does not generate a validation query for the first necessity, although the schema takes that into account:
---- Create table statements--CREATETABLEIF NOT EXISTS "bar" (
"created at"TIMESTAMP DEFAULT CURRENT_TIMESTAMPNOT NULL
, "id"SERIALNOT NULLPRIMARY KEY
);
CREATETABLEIF NOT EXISTS "bar-taints-foo" (
"created at"TIMESTAMP DEFAULT CURRENT_TIMESTAMPNOT NULL
, "bar"INTEGERNOT NULL
, "taints-foo"INTEGERNOT NULL
, "id"SERIALNOT NULLPRIMARY KEY
, FOREIGN KEY ("bar") REFERENCES"bar" ("id")
, UNIQUE("bar", "taints-foo")
);
---- Rule validation queries---- It is necessary that each bar taints at least one fooSELECT NOT EXISTS (
SELECT1FROM"bar"AS"bar.0"WHERE NOT EXISTS (
SELECT"bar.0-taints-foo.1"."foo"FROM"bar-taints-foo"AS"bar.0-taints-foo.1"WHERE"bar.0-taints-foo.1"."bar"="bar.0"."id"
)
) AS"result";
If the second necessity is removed, the validation query for the first necessity is outputted as expected.
The text was updated successfully, but these errors were encountered:
In this example:
sbvr-compiler
does not generate a validation query for the first necessity, although the schema takes that into account:If the second necessity is removed, the validation query for the first necessity is outputted as expected.
The text was updated successfully, but these errors were encountered: