2
0

Fix: driver.Value representation of bytea should be []byte not string

https://github.com/jackc/pgx/issues/1445
This commit is contained in:
Jack Christensen
2022-12-21 17:54:42 -06:00
parent 29ad306e47
commit d737852654
3 changed files with 29 additions and 1 deletions
+1 -1
View File
@@ -238,7 +238,7 @@ func decodeHexBytea(src []byte) ([]byte, error) {
}
func (c ByteaCodec) DecodeDatabaseSQLValue(m *Map, oid uint32, format int16, src []byte) (driver.Value, error) {
return codecDecodeToTextFormat(c, m, oid, format, src)
return c.DecodeValue(m, oid, format, src)
}
func (c ByteaCodec) DecodeValue(m *Map, oid uint32, format int16, src []byte) (any, error) {