Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions database/jixia_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ def topological_sort():
SELECT name, 0
FROM symbol v
WHERE NOT EXISTS (SELECT 1 FROM dependency e WHERE e.source = v.name)
ON CONFLICT DO NOTHING
""")
while cursor.rowcount:
logger.info("topological sort: %d rows affected", cursor.rowcount)
Comment on lines 182 to 186
Expand All @@ -193,6 +194,7 @@ def topological_sort():
GROUP BY e.source
HAVING
EVERY(l.level IS NOT NULL) = TRUE
ON CONFLICT DO NOTHING
""")

with conn.cursor() as cursor:
Expand Down
Loading