Skip to content

Commit 5b5e878

Browse files
authored
fix: use UNION instead of UNION ALL (#877)
1 parent d1eb7d6 commit 5b5e878

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/tagstudio/core/library/alchemy/library.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
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
9797
WITH 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

src/tagstudio/core/library/alchemy/visitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
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
3737
WITH 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

0 commit comments

Comments
 (0)