MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / ErrorCode

Function ErrorCode

IceFireDB-SQLProxy/pkg/mysql/mysql/error.go:61–66  ·  view source on GitHub ↗
(errMsg string)

Source from the content-addressed store, hash-verified

59}
60
61func ErrorCode(errMsg string) (code int) {
62 var tmpStr string
63 // golang scanf doesn't support %*,so I used a temporary variable
64 fmt.Sscanf(errMsg, "%s%d", &tmpStr, &code)
65 return
66}

Callers 1

TestErrorCodeMethod · 0.70

Calls

no outgoing calls

Tested by 1

TestErrorCodeMethod · 0.56