2
0

Rename Uint32 field to include bit size

i.e. Uint renamed to Uint32. This matches the pattern set by the
database/sql types.
This commit is contained in:
Jack Christensen
2022-03-05 09:23:25 -06:00
parent 84a3d91322
commit 2885b039d5
2 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -10,9 +10,9 @@ import (
func TestUint32Codec(t *testing.T) {
testutil.RunTranscodeTests(t, "oid", []testutil.TranscodeTestCase{
{
pgtype.Uint32{Uint: pgtype.TextOID, Valid: true},
pgtype.Uint32{Uint32: pgtype.TextOID, Valid: true},
new(pgtype.Uint32),
isExpectedEq(pgtype.Uint32{Uint: pgtype.TextOID, Valid: true}),
isExpectedEq(pgtype.Uint32{Uint32: pgtype.TextOID, Valid: true}),
},
{pgtype.Uint32{}, new(pgtype.Uint32), isExpectedEq(pgtype.Uint32{})},
{nil, new(pgtype.Uint32), isExpectedEq(pgtype.Uint32{})},