re-format counter update for postgres

This commit is contained in:
Brad Rydzewski 2017-05-23 14:34:24 +02:00
parent f16dfaa9f0
commit 110c036e4e
2 changed files with 6 additions and 6 deletions

View file

@ -1,5 +1,5 @@
-- name: repo-update-counter
UPDATE repos SET repo_counter = ?
WHERE repo_counter = ?
AND repo_id = ?
UPDATE repos SET repo_counter = $1
WHERE repo_counter = $2
AND repo_id = $3

View file

@ -251,9 +251,9 @@ DELETE FROM registry WHERE registry_id = $1
`
var repoUpdateCounter = `
UPDATE repos SET repo_counter = ?
WHERE repo_counter = ?
AND repo_id = ?
UPDATE repos SET repo_counter = $1
WHERE repo_counter = $2
AND repo_id = $3
`
var secretFindRepo = `