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

Function bToi

utils.go:223–228  ·  view source on GitHub ↗
(b byte)

Source from the content-addressed store, hash-verified

221}
222
223func bToi(b byte) (int, error) {
224 if b < '0' || b > '9' {
225 return 0, errors.New("not [0-9]")
226 }
227 return int(b - '0'), nil
228}
229
230func parseBinaryDateTime(num uint64, data []byte, loc *time.Location) (driver.Value, error) {
231 switch num {

Callers 3

parseByteYearFunction · 0.85
parseByte2DigitsFunction · 0.85
parseByteNanoSecFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected