fixing infinite loop when fetching cycles

This commit is contained in:
Jakub Doka 2024-10-26 23:24:45 +02:00
parent 3d721812f0
commit db62434736
No known key found for this signature in database
GPG key ID: C6E9A89936B8C143

View file

@ -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