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 9696-- 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
9797WITH RECURSIVE ChildTags AS (
9898 SELECT :tag_id AS child_id
99- UNION ALL
99+ UNION
100100 SELECT tp.parent_id AS child_id
101101 FROM tag_parents tp
102102 INNER JOIN ChildTags c ON tp.child_id = c.child_id
Original file line number Diff line number Diff line change 3636-- 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
3737WITH RECURSIVE ChildTags AS (
3838 SELECT :tag_id AS child_id
39- UNION ALL
39+ UNION
4040 SELECT tp.parent_id AS child_id
4141 FROM tag_parents tp
4242 INNER JOIN ChildTags c ON tp.child_id = c.child_id
You can’t perform that action at this time.
0 commit comments