2
0

Merge branch 'rwelin-rw_format'

This commit is contained in:
Jack Christensen
2020-03-27 16:10:54 -05:00
+2 -2
View File
@@ -406,7 +406,7 @@ func scanUnknownType(oid uint32, formatCode int16, buf []byte, dest interface{})
switch dest := dest.(type) {
case *string:
if formatCode == BinaryFormatCode {
return errors.Errorf("unknown oid %d in binary format cannot be scanned into %t", oid, dest)
return errors.Errorf("unknown oid %d in binary format cannot be scanned into %T", oid, dest)
}
*dest = string(buf)
return nil
@@ -417,7 +417,7 @@ func scanUnknownType(oid uint32, formatCode int16, buf []byte, dest interface{})
if nextDst, retry := GetAssignToDstType(dest); retry {
return scanUnknownType(oid, formatCode, buf, nextDst)
}
return errors.Errorf("unknown oid %d cannot be scanned into %t", oid, dest)
return errors.Errorf("unknown oid %d cannot be scanned into %T", oid, dest)
}
}