2
0

Replace CID, OID, OIDValue, and XID with Uint32

This commit is contained in:
Jack Christensen
2022-01-09 00:35:49 -06:00
parent b26618ac95
commit eec82c9433
12 changed files with 327 additions and 733 deletions
+19
View File
@@ -0,0 +1,19 @@
package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v5/pgtype"
)
func TestUint32Codec(t *testing.T) {
testPgxCodec(t, "oid", []PgxTranscodeTestCase{
{
pgtype.Uint32{Uint: pgtype.TextOID, Valid: true},
new(pgtype.Uint32),
isExpectedEq(pgtype.Uint32{Uint: pgtype.TextOID, Valid: true}),
},
{pgtype.Uint32{}, new(pgtype.Uint32), isExpectedEq(pgtype.Uint32{})},
{nil, new(pgtype.Uint32), isExpectedEq(pgtype.Uint32{})},
})
}