MCPcopy
hub / github.com/go-sql-driver/mysql / namedValueToValue

Function namedValueToValue

utils.go:780–790  ·  view source on GitHub ↗
(named []driver.NamedValue)

Source from the content-addressed store, hash-verified

778}
779
780func namedValueToValue(named []driver.NamedValue) ([]driver.Value, error) {
781 dargs := make([]driver.Value, len(named))
782 for n, param := range named {
783 if len(param.Name) > 0 {
784 // TODO: support the use of Named Parameters #561
785 return nil, errors.New("mysql: driver does not support the use of Named Parameters")
786 }
787 dargs[n] = param.Value
788 }
789 return dargs, nil
790}
791
792func mapIsolationLevel(level driver.IsolationLevel) (string, error) {
793 switch sql.IsolationLevel(level) {

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected