From db624347368103f6a1581f2ef6d09f24735f683d Mon Sep 17 00:00:00 2001 From: Jakub Doka Date: Sat, 26 Oct 2024 23:24:45 +0200 Subject: [PATCH] fixing infinite loop when fetching cycles --- depell/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depell/src/main.rs b/depell/src/main.rs index 969d8b5..7e63b04 100644 --- a/depell/src/main.rs +++ b/depell/src/main.rs @@ -694,7 +694,7 @@ mod db { fetch_deps: " WITH RECURSIVE roots(name, author, code) AS ( SELECT name, author, code FROM post WHERE name = ? AND author = ? - UNION ALL + UNION SELECT post.name, post.author, post.code FROM post JOIN import ON post.name = import.to_name AND post.author = import.to_author