From 8502a12ac7723377772c6f70dd3b72491fd9d31e Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 20 Apr 2019 17:41:08 -0500 Subject: [PATCH] Fix go modules Wow. This is fun. Sure is easy to get modules wrong when upgrading a v2+ project. --- aclitem_array_test.go | 4 ++-- aclitem_test.go | 4 ++-- array_test.go | 2 +- bit_test.go | 4 ++-- bool_array_test.go | 4 ++-- bool_test.go | 4 ++-- box_test.go | 4 ++-- bpchar_array_test.go | 4 ++-- bpchar_test.go | 4 ++-- bytea_array_test.go | 4 ++-- bytea_test.go | 4 ++-- cid_test.go | 4 ++-- cidr_array_test.go | 4 ++-- circle_test.go | 4 ++-- date_array_test.go | 4 ++-- date_test.go | 4 ++-- daterange_test.go | 4 ++-- enum_array_test.go | 4 ++-- ext/satori-uuid/uuid.go | 2 +- ext/satori-uuid/uuid_test.go | 6 +++--- ext/shopspring-numeric/decimal.go | 2 +- ext/shopspring-numeric/decimal_test.go | 6 +++--- float4_array_test.go | 4 ++-- float4_test.go | 4 ++-- float8_array_test.go | 4 ++-- float8_test.go | 4 ++-- hstore_array_test.go | 6 +++--- hstore_test.go | 4 ++-- inet_array_test.go | 4 ++-- inet_test.go | 4 ++-- int2_array_test.go | 4 ++-- int2_test.go | 4 ++-- int4_array_test.go | 4 ++-- int4_test.go | 4 ++-- int4range_test.go | 4 ++-- int8_array_test.go | 4 ++-- int8_test.go | 4 ++-- int8range_test.go | 4 ++-- interval_test.go | 4 ++-- json_test.go | 4 ++-- jsonb_test.go | 4 ++-- line_test.go | 4 ++-- lseg_test.go | 4 ++-- macaddr_array_test.go | 4 ++-- macaddr_test.go | 4 ++-- name_test.go | 4 ++-- numeric_array_test.go | 4 ++-- numeric_test.go | 4 ++-- numrange_test.go | 4 ++-- oid_value_test.go | 4 ++-- path_test.go | 4 ++-- pgtype_test.go | 2 +- point_test.go | 4 ++-- polygon_test.go | 4 ++-- qchar_test.go | 4 ++-- record_test.go | 6 +++--- testutil/testutil.go | 6 +++--- text_array_test.go | 4 ++-- text_test.go | 4 ++-- tid_test.go | 4 ++-- timestamp_array_test.go | 4 ++-- timestamp_test.go | 4 ++-- timestamptz_array_test.go | 4 ++-- timestamptz_test.go | 4 ++-- tsrange_test.go | 4 ++-- tstzrange_test.go | 4 ++-- uuid_array_test.go | 4 ++-- uuid_test.go | 4 ++-- varbit_test.go | 4 ++-- varchar_array_test.go | 4 ++-- xid_test.go | 4 ++-- 71 files changed, 143 insertions(+), 143 deletions(-) diff --git a/aclitem_array_test.go b/aclitem_array_test.go index 4e60afca..5f16ab28 100644 --- a/aclitem_array_test.go +++ b/aclitem_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestACLItemArrayTranscode(t *testing.T) { diff --git a/aclitem_test.go b/aclitem_test.go index 65399a30..92dfc7a5 100644 --- a/aclitem_test.go +++ b/aclitem_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestACLItemTranscode(t *testing.T) { diff --git a/array_test.go b/array_test.go index d1cdb4c5..d17d753c 100644 --- a/array_test.go +++ b/array_test.go @@ -4,7 +4,7 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" + "github.com/jackc/pgx/v4/pgtype" ) func TestParseUntypedTextArray(t *testing.T) { diff --git a/bit_test.go b/bit_test.go index 19492bc9..05729323 100644 --- a/bit_test.go +++ b/bit_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestBitTranscode(t *testing.T) { diff --git a/bool_array_test.go b/bool_array_test.go index b529555e..6d2d7c06 100644 --- a/bool_array_test.go +++ b/bool_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestBoolArrayTranscode(t *testing.T) { diff --git a/bool_test.go b/bool_test.go index 04d9337d..5228e280 100644 --- a/bool_test.go +++ b/bool_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestBoolTranscode(t *testing.T) { diff --git a/box_test.go b/box_test.go index 197401f3..aad10262 100644 --- a/box_test.go +++ b/box_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestBoxTranscode(t *testing.T) { diff --git a/bpchar_array_test.go b/bpchar_array_test.go index e4f2e7eb..820dfa5b 100644 --- a/bpchar_array_test.go +++ b/bpchar_array_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestBPCharArrayTranscode(t *testing.T) { diff --git a/bpchar_test.go b/bpchar_test.go index c076ca1b..e8981e52 100644 --- a/bpchar_test.go +++ b/bpchar_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestChar3Transcode(t *testing.T) { diff --git a/bytea_array_test.go b/bytea_array_test.go index 8450b71b..00dc0a1f 100644 --- a/bytea_array_test.go +++ b/bytea_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestByteaArrayTranscode(t *testing.T) { diff --git a/bytea_test.go b/bytea_test.go index fd5a0dec..75b55de4 100644 --- a/bytea_test.go +++ b/bytea_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestByteaTranscode(t *testing.T) { diff --git a/cid_test.go b/cid_test.go index 924e4cf3..588e6c66 100644 --- a/cid_test.go +++ b/cid_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestCIDTranscode(t *testing.T) { diff --git a/cidr_array_test.go b/cidr_array_test.go index 206a590f..71125bdb 100644 --- a/cidr_array_test.go +++ b/cidr_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestCIDRArrayTranscode(t *testing.T) { diff --git a/circle_test.go b/circle_test.go index 634c5832..82598620 100644 --- a/circle_test.go +++ b/circle_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestCircleTranscode(t *testing.T) { diff --git a/date_array_test.go b/date_array_test.go index 2ba19d1a..24a8282c 100644 --- a/date_array_test.go +++ b/date_array_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestDateArrayTranscode(t *testing.T) { diff --git a/date_test.go b/date_test.go index d98e1652..ac7aadfe 100644 --- a/date_test.go +++ b/date_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestDateTranscode(t *testing.T) { diff --git a/daterange_test.go b/daterange_test.go index d2af5986..4d3119ee 100644 --- a/daterange_test.go +++ b/daterange_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestDaterangeTranscode(t *testing.T) { diff --git a/enum_array_test.go b/enum_array_test.go index 052a813c..dbe09751 100644 --- a/enum_array_test.go +++ b/enum_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestEnumArrayTranscode(t *testing.T) { diff --git a/ext/satori-uuid/uuid.go b/ext/satori-uuid/uuid.go index baebc5ed..8713b4d6 100644 --- a/ext/satori-uuid/uuid.go +++ b/ext/satori-uuid/uuid.go @@ -5,7 +5,7 @@ import ( "github.com/pkg/errors" - "github.com/jackc/pgx/pgtype" + "github.com/jackc/pgx/v4/pgtype" uuid "github.com/satori/go.uuid" ) diff --git a/ext/satori-uuid/uuid_test.go b/ext/satori-uuid/uuid_test.go index 02ebb770..7a770b84 100644 --- a/ext/satori-uuid/uuid_test.go +++ b/ext/satori-uuid/uuid_test.go @@ -4,9 +4,9 @@ import ( "bytes" "testing" - "github.com/jackc/pgx/pgtype" - satori "github.com/jackc/pgx/pgtype/ext/satori-uuid" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + satori "github.com/jackc/pgx/v4/pgtype/ext/satori-uuid" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestUUIDTranscode(t *testing.T) { diff --git a/ext/shopspring-numeric/decimal.go b/ext/shopspring-numeric/decimal.go index 7c1cd770..0b63999b 100644 --- a/ext/shopspring-numeric/decimal.go +++ b/ext/shopspring-numeric/decimal.go @@ -6,7 +6,7 @@ import ( "github.com/pkg/errors" - "github.com/jackc/pgx/pgtype" + "github.com/jackc/pgx/v4/pgtype" "github.com/shopspring/decimal" ) diff --git a/ext/shopspring-numeric/decimal_test.go b/ext/shopspring-numeric/decimal_test.go index b237478d..2af39e1d 100644 --- a/ext/shopspring-numeric/decimal_test.go +++ b/ext/shopspring-numeric/decimal_test.go @@ -7,9 +7,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - shopspring "github.com/jackc/pgx/pgtype/ext/shopspring-numeric" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + shopspring "github.com/jackc/pgx/v4/pgtype/ext/shopspring-numeric" + "github.com/jackc/pgx/v4/pgtype/testutil" "github.com/shopspring/decimal" ) diff --git a/float4_array_test.go b/float4_array_test.go index 4d6511b4..24d544b6 100644 --- a/float4_array_test.go +++ b/float4_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestFloat4ArrayTranscode(t *testing.T) { diff --git a/float4_test.go b/float4_test.go index 2ed8d05d..4779b357 100644 --- a/float4_test.go +++ b/float4_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestFloat4Transcode(t *testing.T) { diff --git a/float8_array_test.go b/float8_array_test.go index ff8e3b26..b3e7a197 100644 --- a/float8_array_test.go +++ b/float8_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestFloat8ArrayTranscode(t *testing.T) { diff --git a/float8_test.go b/float8_test.go index 46fc8d5d..15092916 100644 --- a/float8_test.go +++ b/float8_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestFloat8Transcode(t *testing.T) { diff --git a/hstore_array_test.go b/hstore_array_test.go index 849b5835..bc45cbdf 100644 --- a/hstore_array_test.go +++ b/hstore_array_test.go @@ -5,9 +5,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestHstoreArrayTranscode(t *testing.T) { diff --git a/hstore_test.go b/hstore_test.go index d76c9942..71fd2355 100644 --- a/hstore_test.go +++ b/hstore_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestHstoreTranscode(t *testing.T) { diff --git a/inet_array_test.go b/inet_array_test.go index ca528ed3..4e93d0f5 100644 --- a/inet_array_test.go +++ b/inet_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInetArrayTranscode(t *testing.T) { diff --git a/inet_test.go b/inet_test.go index 32d66999..ee93873b 100644 --- a/inet_test.go +++ b/inet_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInetTranscode(t *testing.T) { diff --git a/int2_array_test.go b/int2_array_test.go index 0fe763c1..fb4f0d60 100644 --- a/int2_array_test.go +++ b/int2_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt2ArrayTranscode(t *testing.T) { diff --git a/int2_test.go b/int2_test.go index d20bf0ed..ff4732f7 100644 --- a/int2_test.go +++ b/int2_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt2Transcode(t *testing.T) { diff --git a/int4_array_test.go b/int4_array_test.go index f0418600..06772cf6 100644 --- a/int4_array_test.go +++ b/int4_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt4ArrayTranscode(t *testing.T) { diff --git a/int4_test.go b/int4_test.go index 02f5409f..6b23c5a9 100644 --- a/int4_test.go +++ b/int4_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt4Transcode(t *testing.T) { diff --git a/int4range_test.go b/int4range_test.go index 961678bb..95d448f0 100644 --- a/int4range_test.go +++ b/int4range_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt4rangeTranscode(t *testing.T) { diff --git a/int8_array_test.go b/int8_array_test.go index 2ca65173..c2d914ab 100644 --- a/int8_array_test.go +++ b/int8_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt8ArrayTranscode(t *testing.T) { diff --git a/int8_test.go b/int8_test.go index 0b3bb3eb..a5f80f42 100644 --- a/int8_test.go +++ b/int8_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt8Transcode(t *testing.T) { diff --git a/int8range_test.go b/int8range_test.go index f33ae4d8..01af48bb 100644 --- a/int8range_test.go +++ b/int8range_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestInt8rangeTranscode(t *testing.T) { diff --git a/interval_test.go b/interval_test.go index 76ea3240..7cafb0ae 100644 --- a/interval_test.go +++ b/interval_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestIntervalTranscode(t *testing.T) { diff --git a/json_test.go b/json_test.go index 38494841..bb0f1b20 100644 --- a/json_test.go +++ b/json_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestJSONTranscode(t *testing.T) { diff --git a/jsonb_test.go b/jsonb_test.go index afc51019..73656c76 100644 --- a/jsonb_test.go +++ b/jsonb_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestJSONBTranscode(t *testing.T) { diff --git a/line_test.go b/line_test.go index 077afe6b..5f0a58a3 100644 --- a/line_test.go +++ b/line_test.go @@ -4,8 +4,8 @@ import ( "context" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestLineTranscode(t *testing.T) { diff --git a/lseg_test.go b/lseg_test.go index 0a25090a..100bdf0f 100644 --- a/lseg_test.go +++ b/lseg_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestLsegTranscode(t *testing.T) { diff --git a/macaddr_array_test.go b/macaddr_array_test.go index d4bb2f01..cf07ebf6 100644 --- a/macaddr_array_test.go +++ b/macaddr_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestMacaddrArrayTranscode(t *testing.T) { diff --git a/macaddr_test.go b/macaddr_test.go index 5d329249..a08671c0 100644 --- a/macaddr_test.go +++ b/macaddr_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestMacaddrTranscode(t *testing.T) { diff --git a/name_test.go b/name_test.go index ec0820c4..75d7b95a 100644 --- a/name_test.go +++ b/name_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestNameTranscode(t *testing.T) { diff --git a/numeric_array_test.go b/numeric_array_test.go index 22ee1bc4..b17a6461 100644 --- a/numeric_array_test.go +++ b/numeric_array_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestNumericArrayTranscode(t *testing.T) { diff --git a/numeric_test.go b/numeric_test.go index 9d7d83d6..b723cc56 100644 --- a/numeric_test.go +++ b/numeric_test.go @@ -6,8 +6,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) // For test purposes only. Note that it does not normalize values. e.g. (Int: 1, Exp: 3) will not equal (Int: 1000, Exp: 0) diff --git a/numrange_test.go b/numrange_test.go index ccc794d5..610447fe 100644 --- a/numrange_test.go +++ b/numrange_test.go @@ -4,8 +4,8 @@ import ( "math/big" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestNumrangeTranscode(t *testing.T) { diff --git a/oid_value_test.go b/oid_value_test.go index f5ff16cf..462a5a28 100644 --- a/oid_value_test.go +++ b/oid_value_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestOIDValueTranscode(t *testing.T) { diff --git a/path_test.go b/path_test.go index bc2d7435..16e781f5 100644 --- a/path_test.go +++ b/path_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestPathTranscode(t *testing.T) { diff --git a/pgtype_test.go b/pgtype_test.go index f7e743b2..400c0591 100644 --- a/pgtype_test.go +++ b/pgtype_test.go @@ -4,7 +4,7 @@ import ( "net" "testing" - _ "github.com/jackc/pgx/stdlib" + _ "github.com/jackc/pgx/v4/stdlib" _ "github.com/lib/pq" ) diff --git a/point_test.go b/point_test.go index af70b38b..017bfc03 100644 --- a/point_test.go +++ b/point_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestPointTranscode(t *testing.T) { diff --git a/polygon_test.go b/polygon_test.go index 5ff3bbb3..3bafebfc 100644 --- a/polygon_test.go +++ b/polygon_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestPolygonTranscode(t *testing.T) { diff --git a/qchar_test.go b/qchar_test.go index 057a557f..3b50bb3e 100644 --- a/qchar_test.go +++ b/qchar_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestQCharTranscode(t *testing.T) { diff --git a/record_test.go b/record_test.go index a4fc1e5d..5de8af31 100644 --- a/record_test.go +++ b/record_test.go @@ -6,9 +6,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestRecordTranscode(t *testing.T) { diff --git a/testutil/testutil.go b/testutil/testutil.go index 0d653394..121eb754 100644 --- a/testutil/testutil.go +++ b/testutil/testutil.go @@ -8,9 +8,9 @@ import ( "reflect" "testing" - "github.com/jackc/pgx" - "github.com/jackc/pgx/pgtype" - _ "github.com/jackc/pgx/stdlib" + "github.com/jackc/pgx/v4" + "github.com/jackc/pgx/v4/pgtype" + _ "github.com/jackc/pgx/v4/stdlib" _ "github.com/lib/pq" ) diff --git a/text_array_test.go b/text_array_test.go index 105d9353..b03312d9 100644 --- a/text_array_test.go +++ b/text_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTextArrayTranscode(t *testing.T) { diff --git a/text_test.go b/text_test.go index bd971807..53f4bd7e 100644 --- a/text_test.go +++ b/text_test.go @@ -5,8 +5,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTextTranscode(t *testing.T) { diff --git a/tid_test.go b/tid_test.go index 9185cb31..cd753ab4 100644 --- a/tid_test.go +++ b/tid_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTIDTranscode(t *testing.T) { diff --git a/timestamp_array_test.go b/timestamp_array_test.go index 5821f43a..002d1ca4 100644 --- a/timestamp_array_test.go +++ b/timestamp_array_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTimestampArrayTranscode(t *testing.T) { diff --git a/timestamp_test.go b/timestamp_test.go index 267f1a7e..732f3cc2 100644 --- a/timestamp_test.go +++ b/timestamp_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTimestampTranscode(t *testing.T) { diff --git a/timestamptz_array_test.go b/timestamptz_array_test.go index 8d7ea4c9..ac9975f0 100644 --- a/timestamptz_array_test.go +++ b/timestamptz_array_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTimestamptzArrayTranscode(t *testing.T) { diff --git a/timestamptz_test.go b/timestamptz_test.go index c326802d..f522117b 100644 --- a/timestamptz_test.go +++ b/timestamptz_test.go @@ -5,8 +5,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTimestamptzTranscode(t *testing.T) { diff --git a/tsrange_test.go b/tsrange_test.go index 78eb1cd3..6215e318 100644 --- a/tsrange_test.go +++ b/tsrange_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTsrangeTranscode(t *testing.T) { diff --git a/tstzrange_test.go b/tstzrange_test.go index a27ddd3a..ddaf798b 100644 --- a/tstzrange_test.go +++ b/tstzrange_test.go @@ -4,8 +4,8 @@ import ( "testing" "time" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestTstzrangeTranscode(t *testing.T) { diff --git a/uuid_array_test.go b/uuid_array_test.go index ee9d3dfa..6ec6acfb 100644 --- a/uuid_array_test.go +++ b/uuid_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestUUIDArrayTranscode(t *testing.T) { diff --git a/uuid_test.go b/uuid_test.go index 162d999f..9d95c10c 100644 --- a/uuid_test.go +++ b/uuid_test.go @@ -4,8 +4,8 @@ import ( "bytes" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestUUIDTranscode(t *testing.T) { diff --git a/varbit_test.go b/varbit_test.go index 6c813aae..8ea282eb 100644 --- a/varbit_test.go +++ b/varbit_test.go @@ -3,8 +3,8 @@ package pgtype_test import ( "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestVarbitTranscode(t *testing.T) { diff --git a/varchar_array_test.go b/varchar_array_test.go index 9fb0960f..b836664f 100644 --- a/varchar_array_test.go +++ b/varchar_array_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestVarcharArrayTranscode(t *testing.T) { diff --git a/xid_test.go b/xid_test.go index 594d1214..34801e1f 100644 --- a/xid_test.go +++ b/xid_test.go @@ -4,8 +4,8 @@ import ( "reflect" "testing" - "github.com/jackc/pgx/pgtype" - "github.com/jackc/pgx/pgtype/testutil" + "github.com/jackc/pgx/v4/pgtype" + "github.com/jackc/pgx/v4/pgtype/testutil" ) func TestXIDTranscode(t *testing.T) {