Skip to content
Snippets Groups Projects
Unverified Commit 1cdf2125 authored by Daniel's avatar Daniel
Browse files

FIX: more restrictive insertion into isa_cache table

For issue #18
parent fd3697dc
No related branches found
No related tags found
No related merge requests found
...@@ -60,7 +60,7 @@ insert_is_a_proc: BEGIN ...@@ -60,7 +60,7 @@ insert_is_a_proc: BEGIN
p, -- New parent (directly) p, -- New parent (directly)
concat(p, ">", i.rpath)) -- Else "p>super.rpath" concat(p, ">", i.rpath)) -- Else "p>super.rpath"
AS rpath AS rpath
FROM isa_cache AS i WHERE i.child = p; -- Select rows with supertype FROM isa_cache AS i WHERE i.child = p AND i.child != i.parent; -- Select rows with supertype
-- Propagate to descendants: -- Propagate to descendants:
-- for each subtype of c: insert each supertype of p -- for each subtype of c: insert each supertype of p
...@@ -78,7 +78,7 @@ insert_is_a_proc: BEGIN ...@@ -78,7 +78,7 @@ insert_is_a_proc: BEGIN
AS rpath AS rpath
FROM FROM
isa_cache as l INNER JOIN isa_cache as r isa_cache as l INNER JOIN isa_cache as r
ON (l.parent = c AND c = r.child); -- Left: descendants of c, right: ancestors ON (l.parent = c AND c = r.child AND l.child != l.parent); -- Left: descendants of c, right: ancestors
END; END;
// //
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment