2
0

wrap error

This commit is contained in:
Simon Paredes
2023-04-10 19:08:28 -04:00
committed by Jack Christensen
parent 84eb2e460a
commit 2cf1541bb9
+1 -1
View File
@@ -2050,7 +2050,7 @@ func newEncodeError(value any, m *Map, oid uint32, formatCode int16, err error)
dataTypeName = "unknown type"
}
return fmt.Errorf("unable to encode %#v into %s format for %s (OID %d): %s", value, format, dataTypeName, oid, err)
return fmt.Errorf("unable to encode %#v into %s format for %s (OID %d): %w", value, format, dataTypeName, oid, err)
}
// Encode appends the encoded bytes of value to buf. If value is the SQL value NULL then append nothing and return