Skip to content

Commit

Permalink
erroneous insert query in Merger
Browse files Browse the repository at this point in the history
  • Loading branch information
wschuell committed Dec 3, 2024
1 parent 6fa0798 commit 7089cb6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions repodepo/extras/exports.py
Original file line number Diff line number Diff line change
Expand Up @@ -1258,8 +1258,8 @@ def merge_repos(self):
"""
INSERT INTO repositories(owner,name,source,url_id,created_at,updated_at,cloned,latest_commit_time)
SELECT %(rowner)s,%(rname)s,s.id,u.id,%(rcreatedat)s,%(rupdatedat)s,%(rcloned)s,%(rlatest)s
FROM urls u
INNER JOIN sources s
FROM sources s
LEFT OUTER JOIN urls u
ON s.name=%(source)s
AND u.url=%(url)s
AND NOT EXISTS(
Expand Down Expand Up @@ -1293,8 +1293,8 @@ def merge_repos(self):
"""
INSERT INTO repositories(owner,name,source,url_id,created_at,updated_at,cloned,latest_commit_time)
SELECT :rowner,:rname,s.id,u.id,:rcreatedat,:rupdatedat,:rcloned,:rlatest
FROM urls u
INNER JOIN sources s
FROM sources s
LEFT OUTER JOIN urls u
ON s.name=:source
AND u.url=:url
AND NOT EXISTS(
Expand Down

0 comments on commit 7089cb6

Please sign in to comment.