2
0

Finish import of pgtype repo

Fix some tests that broke by merging repos
Tweak readme wording
This commit is contained in:
Jack Christensen
2021-12-04 13:33:09 -06:00
parent 7aeb42b80c
commit 7e13db4538
116 changed files with 294 additions and 686 deletions
+4 -4
View File
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/jackc/pgtype"
"github.com/jackc/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/stretchr/testify/require"
)
@@ -34,7 +34,7 @@ func TestTimestampTranscode(t *testing.T) {
})
}
// https://github.com/jackc/pgtype/pull/128
// https://github.com/jackc/pgx/v4/pgtype/pull/128
func TestTimestampTranscodeBigTimeBinary(t *testing.T) {
conn := testutil.MustConnectPgx(t)
if _, ok := conn.ConnInfo().DataTypeForName("line"); !ok {
@@ -99,7 +99,7 @@ func TestTimestampNanosecondsTruncated(t *testing.T) {
}
}
// https://github.com/jackc/pgtype/issues/74
// https://github.com/jackc/pgx/v4/pgtype/issues/74
func TestTimestampDecodeTextInvalid(t *testing.T) {
tstz := &pgtype.Timestamp{}
err := tstz.DecodeText(nil, []byte(`eeeee`))