Skip to content
Snippets Groups Projects
Commit 4aa2880c authored by Monika Komorowska's avatar Monika Komorowska
Browse files

added distinct to select_sth sql - we can have multiple rows with the same...

added distinct to select_sth sql - we can have multiple rows with the same child parent and relation_id since adding INTERSECTION tags
parent 4a1c8b7b
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,7 @@ $dbh->do(
q(
INSERT INTO closure
(child_term_id, parent_term_id, distance, subparent_term_id)
SELECT child_term_id, parent_term_id, 1, child_term_id
SELECT DISTINCT child_term_id, parent_term_id, 1, child_term_id
FROM relation r,
relation_type rt
WHERE rt.name IN (
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment