Replace CID, OID, OIDValue, and XID with Uint32
This commit is contained in:
@@ -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{})},
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user