Skip to content

Commit

Permalink
Add code attribution
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Keo committed Mar 2, 2022
1 parent 0725b4d commit 86533c7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ func (c *Conn) QueryContext(ctx context.Context, query string, args []driver.Nam
}

// namedValueToValue is a utility function that converts a driver.NamedValue into a driver.Value.
// Source:
// https://github.com/golang/go/blob/03ac39ce5e6af4c4bca58b54d5b160a154b7aa0e/src/database/sql/ctxutil.go#L137-L146
func namedValueToValue(named []driver.NamedValue) ([]driver.Value, error) {
dargs := make([]driver.Value, len(named))
for n, param := range named {
Expand Down

0 comments on commit 86533c7

Please sign in to comment.