File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/tagstudio/core/library/alchemy Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 96
96
-- Note for this entire query that tag_parents.child_id is the parent id and tag_parents.parent_id is the child id due to bad naming
97
97
WITH RECURSIVE ChildTags AS (
98
98
SELECT :tag_id AS child_id
99
- UNION ALL
99
+ UNION
100
100
SELECT tp.parent_id AS child_id
101
101
FROM tag_parents tp
102
102
INNER JOIN ChildTags c ON tp.child_id = c.child_id
Original file line number Diff line number Diff line change 36
36
-- Note for this entire query that tag_parents.child_id is the parent id and tag_parents.parent_id is the child id due to bad naming
37
37
WITH RECURSIVE ChildTags AS (
38
38
SELECT :tag_id AS child_id
39
- UNION ALL
39
+ UNION
40
40
SELECT tp.parent_id AS child_id
41
41
FROM tag_parents tp
42
42
INNER JOIN ChildTags c ON tp.child_id = c.child_id
You can’t perform that action at this time.
0 commit comments