Skip to content

Commit

Permalink
re-format counter update for postgres
Browse files Browse the repository at this point in the history
  • Loading branch information
bradrydzewski committed May 23, 2017
1 parent f16dfaa commit 110c036
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions store/datastore/sql/postgres/files/repos.sql
Original file line number Diff line number Diff line change
@@ -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
6 changes: 3 additions & 3 deletions store/datastore/sql/postgres/sql_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 = `
Expand Down

0 comments on commit 110c036

Please sign in to comment.