Finish import of pgtype repo
Fix some tests that broke by merging repos Tweak readme wording
This commit is contained in:
@@ -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`))
|
||||
|
||||
Reference in New Issue
Block a user