MCPcopy Create free account
hub / github.com/cockroachdb/copyist / namedValueToValue

Function namedValueToValue

stmt.go:160–169  ·  view source on GitHub ↗
(named []driver.NamedValue)

Source from the content-addressed store, hash-verified

158}
159
160func namedValueToValue(named []driver.NamedValue) ([]driver.Value, error) {
161 dargs := make([]driver.Value, len(named))
162 for n, param := range named {
163 if len(param.Name) > 0 {
164 return nil, errors.New("sql: driver does not support the use of Named Parameters")
165 }
166 dargs[n] = param.Value
167 }
168 return dargs, nil
169}

Callers 4

ExecContextMethod · 0.85
QueryContextMethod · 0.85
ExecContextMethod · 0.85
QueryContextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected