Skip to content

Commit

Permalink
prioritize db with context over non-context db
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Lantinga committed Dec 6, 2019
1 parent 5d1d880 commit 83644f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions squirrel.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ func (r *stdsqlRunner) QueryRow(query string, args ...interface{}) RowScanner {

func setRunWith(b interface{}, runner BaseRunner) interface{} {
switch r := runner.(type) {
case StdSqlCtx:
runner = WrapStdSqlCtx(r)
case StdSql:
runner = WrapStdSql(r)
case StdSqlCtx:
runner = &stdsqlCtxRunner{r}
}
return builder.Set(b, "RunWith", runner)
}
Expand Down

0 comments on commit 83644f2

Please sign in to comment.