fixed placeholder issue in listof query

This commit is contained in:
Brad Rydzewski 2015-11-11 15:09:12 -08:00
parent 6b69913d82
commit 84a0ef1f89

View file

@ -47,7 +47,7 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
var qs = make([]string, size, size) var qs = make([]string, size, size)
var in = make([]interface{}, size, size) var in = make([]interface{}, size, size)
for i, repo := range listof { for i, repo := range listof {
qs[i] = "$" + strconv.Itoa(i+1) qs[i] = "?"
in[i] = repo.FullName in[i] = repo.FullName
} }
return strings.Join(qs, ","), in return strings.Join(qs, ","), in