fixed placeholder issue in listof query
This commit is contained in:
parent
6b69913d82
commit
84a0ef1f89
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue