2
0

Use pgtype.UUID for test instead of ext UUID

This commit is contained in:
Jack Christensen
2021-11-29 12:29:02 -05:00
parent 9fdaf7da81
commit cf0de913ee
-7
View File
@@ -18,7 +18,6 @@ import (
"github.com/jackc/pgconn"
"github.com/jackc/pgconn/stmtcache"
"github.com/jackc/pgtype"
gofrs "github.com/jackc/pgtype/ext/gofrs-uuid"
"github.com/jackc/pgx/v4"
"github.com/shopspring/decimal"
"github.com/stretchr/testify/assert"
@@ -1236,12 +1235,6 @@ func TestConnQueryDatabaseSQLDriverValuerWithBinaryPgTypeThatAcceptsSameType(t *
conn := mustConnectString(t, os.Getenv("PGX_TEST_DATABASE"))
defer closeConn(t, conn)
conn.ConnInfo().RegisterDataType(pgtype.DataType{
Value: &gofrs.UUID{},
Name: "uuid",
OID: 2950,
})
expected, err := uuid.FromString("6ba7b810-9dad-11d1-80b4-00c04fd430c8")
if err != nil {
t.Fatal(err)