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
+7
View File
@@ -120,6 +120,13 @@ func skipPostgreSQLVersionLessThan(t testing.TB, minVersion int64) {
}
}
// sqlScannerFunc lets an arbitrary function be used as a sql.Scanner.
type sqlScannerFunc func(src any) error
func (f sqlScannerFunc) Scan(src any) error {
return f(src)
}
func TestMapScanNilIsNoOp(t *testing.T) {
m := pgtype.NewMap()