Skip to content

Commit

Permalink
Expand variadic args in contextStore (#517)
Browse files Browse the repository at this point in the history
See #497
  • Loading branch information
aeneasr authored Feb 11, 2020
1 parent 7b6cd8c commit c7edcfb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions store.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@ func (s contextStore) Transaction() (*Tx, error) {
return s.store.TransactionContext(s.ctx)
}
func (s contextStore) Select(dest interface{}, query string, args ...interface{}) error {
return s.store.SelectContext(s.ctx, dest, query, args)
return s.store.SelectContext(s.ctx, dest, query, args...)
}
func (s contextStore) Get(dest interface{}, query string, args ...interface{}) error {
return s.store.GetContext(s.ctx, dest, query, args)
return s.store.GetContext(s.ctx, dest, query, args...)
}
func (s contextStore) NamedExec(query string, arg interface{}) (sql.Result, error) {
return s.store.NamedExecContext(s.ctx, query, arg)
}
func (s contextStore) Exec(query string, args ...interface{}) (sql.Result, error) {
return s.store.ExecContext(s.ctx, query, args)
return s.store.ExecContext(s.ctx, query, args...)
}
func (s contextStore) PrepareNamed(query string) (*sqlx.NamedStmt, error) {
return s.store.PrepareNamedContext(s.ctx, query)
Expand Down

0 comments on commit c7edcfb

Please sign in to comment.