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

Method Value

utils.go:772–778  ·  view source on GitHub ↗

Value returns the current error value

()

Source from the content-addressed store, hash-verified

770
771// Value returns the current error value
772func (ae *atomicError) Value() error {
773 if v := ae.value.Load(); v != nil {
774 // this will panic if the value doesn't implement the error interface
775 return v.(error)
776 }
777 return nil
778}
779
780func namedValueToValue(named []driver.NamedValue) ([]driver.Value, error) {
781 dargs := make([]driver.Value, len(named))

Callers 6

TestAtomicErrorFunction · 0.95
callValuerValueFunction · 0.45
readPacketMethod · 0.45
writePacketMethod · 0.45
errorMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestAtomicErrorFunction · 0.76