fix typo in toListPosgres

This commit is contained in:
Marius Grigoriu 2016-09-02 04:32:17 -07:00 committed by Marius Grigoriu
parent 0ace6aefd6
commit d8d0e47d01
3 changed files with 4 additions and 4 deletions

View file

@ -28,7 +28,7 @@ func (db *datastore) GetRepoListOf(listof []*model.RepoLite) ([]*model.Repo, err
) )
switch meddler.Default { switch meddler.Default {
case meddler.PostgreSQL: case meddler.PostgreSQL:
stmt, args = toListPosgres(listof) stmt, args = toListPostgres(listof)
default: default:
stmt, args = toList(listof) stmt, args = toList(listof)
} }

View file

@ -35,7 +35,7 @@ func (db *datastore) GetUserFeed(listof []*model.RepoLite) ([]*model.Feed, error
) )
switch meddler.Default { switch meddler.Default {
case meddler.PostgreSQL: case meddler.PostgreSQL:
stmt, args = toListPosgres(listof) stmt, args = toListPostgres(listof)
default: default:
stmt, args = toList(listof) stmt, args = toList(listof)
} }
@ -55,7 +55,7 @@ func (db *datastore) GetUserFeedLatest(listof []*model.RepoLite) ([]*model.Feed,
) )
switch meddler.Default { switch meddler.Default {
case meddler.PostgreSQL: case meddler.PostgreSQL:
stmt, args = toListPosgres(listof) stmt, args = toListPostgres(listof)
default: default:
stmt, args = toList(listof) stmt, args = toList(listof)
} }

View file

@ -51,7 +51,7 @@ func toList(listof []*model.RepoLite) (string, []interface{}) {
// helper function that converts a simple repository list // helper function that converts a simple repository list
// to a sql IN statement compatible with postgres. // to a sql IN statement compatible with postgres.
func toListPosgres(listof []*model.RepoLite) (string, []interface{}) { func toListPostgres(listof []*model.RepoLite) (string, []interface{}) {
var size = len(listof) var size = len(listof)
var qs = make([]string, size, size) var qs = make([]string, size, size)
var in = make([]interface{}, size, size) var in = make([]interface{}, size, size)