2
0

Fix go modules

Wow. This is fun. Sure is easy to get modules wrong when upgrading a v2+
project.
This commit is contained in:
Jack Christensen
2019-04-20 17:41:08 -05:00
parent b7e56b003a
commit efb333df6b
116 changed files with 210 additions and 226 deletions
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"github.com/jackc/pgconn"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
"github.com/pkg/errors"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"testing"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
)
func TestConnBeginBatch(t *testing.T) {
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
)
func BenchmarkPointerPointerWithNullValues(b *testing.B) {
+1 -1
View File
@@ -13,7 +13,7 @@ import (
"github.com/jackc/pgconn"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
const (
+2 -2
View File
@@ -9,8 +9,8 @@ import (
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/stretchr/testify/require"
errors "golang.org/x/xerrors"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/pkg/errors"
)
+2 -2
View File
@@ -7,8 +7,8 @@ import (
"regexp"
"strconv"
"github.com/jackc/pgx"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/pkg/errors"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"os"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
)
func Example_JSON() {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"fmt"
"os"
pgxpool "github.com/jackc/pgx/pool"
pgxpool "github.com/jackc/pgx/v4/pool"
)
var pool *pgxpool.Pool
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"os"
"strconv"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
)
var conn *pgx.Conn
+2 -2
View File
@@ -10,8 +10,8 @@ func main() {
// "net/http"
// "os"
// "github.com/jackc/pgx"
// "github.com/jackc/pgx/log/log15adapter"
// "github.com/jackc/pgx/v4"
// "github.com/jackc/pgx/v4/log/log15adapter"
// log "gopkg.in/inconshreveable/log15.v2"
// )
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"github.com/jackc/pgio"
"github.com/jackc/pgproto3"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
func newFastpath(cn *Conn) *fastpath {
+1 -1
View File
@@ -1,4 +1,4 @@
module github.com/jackc/pgx
module github.com/jackc/pgx/v4
go 1.12
-16
View File
@@ -6,28 +6,14 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/jackc/chunkreader v1.0.0 h1:4s39bBR8ByfqH+DKm8rQA3E1LHZWB9XWcrz8fqaZbe0=
github.com/jackc/chunkreader v1.0.0/go.mod h1:RT6O25fNZIuasFJRyZ4R/Y2BbhasbmZXF9QQ7T3kePo=
github.com/jackc/pgconn v0.0.0-20190405170659-7ad3625edd3b h1:EFVP6CIXsShWT+mEeoVGMvJz1a1SAKqw8zQ15bz7cw8=
github.com/jackc/pgconn v0.0.0-20190405170659-7ad3625edd3b/go.mod h1:8Bzf8vzi/ZpcgLgrq8IUHjZX4ZU+Hf6N6/AJ85+fDeE=
github.com/jackc/pgconn v0.0.0-20190419194309-16412e56e22d h1:hcjvON7F1UqRaTfXygfWQRm4I+Z+v2ljeQ7tWNc6FdI=
github.com/jackc/pgconn v0.0.0-20190419194309-16412e56e22d/go.mod h1:UsnoyBN75lNxOeZXUT70J9xAvZffv2fxrxCrIPIH/Rk=
github.com/jackc/pgconn v0.0.0-20190419205212-7bb6c2f3e982 h1:U0G6KWiQ9xrqbXt96OV+BF5dKZdLbvedURzqGPqH5jg=
github.com/jackc/pgconn v0.0.0-20190419205212-7bb6c2f3e982/go.mod h1:UsnoyBN75lNxOeZXUT70J9xAvZffv2fxrxCrIPIH/Rk=
github.com/jackc/pgconn v0.0.0-20190419211655-3710e52a9a12 h1:PzGjcOqGl6npHTDt8yDK5lnI9/ZQ+5ZpywzazR+yd8Q=
github.com/jackc/pgconn v0.0.0-20190419211655-3710e52a9a12/go.mod h1:UsnoyBN75lNxOeZXUT70J9xAvZffv2fxrxCrIPIH/Rk=
github.com/jackc/pgconn v0.0.0-20190420161109-39e6ff5766bd h1:eSKDWtHcm6H/vELPrs6fh7bch3wBc2vUvqVnHw17+5c=
github.com/jackc/pgconn v0.0.0-20190420161109-39e6ff5766bd/go.mod h1:UsnoyBN75lNxOeZXUT70J9xAvZffv2fxrxCrIPIH/Rk=
github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3 h1:ZFYpB74Kq8xE9gmfxCmXD6QxZ27ja+j3HwGFc+YurhQ=
github.com/jackc/pgconn v0.0.0-20190420214824-7e0022ef6ba3/go.mod h1:jkELnwuX+w9qN5YIfX0fl88Ehu4XC3keFuOJJk9pcnA=
github.com/jackc/pgio v1.0.0 h1:g12B9UwVnzGhueNavwioyEEpAmqMe1E/BN9ES+8ovkE=
github.com/jackc/pgio v1.0.0/go.mod h1:oP+2QK2wFfUWgr+gxjoBH9KGBb31Eio69xUb0w5bYf8=
github.com/jackc/pgpassfile v1.0.0 h1:/6Hmqy13Ss2zCq62VdNG8tM1wchn8zjSGOBJ6icpsIM=
github.com/jackc/pgpassfile v1.0.0/go.mod h1:CEx0iS5ambNFdcRtxPj5JhEz+xB6uRky5eyVu/W2HEg=
github.com/jackc/pgproto3 v1.0.0 h1:25tUmlES7eyD96oYaUHc1dLOFbgcJtFzCdnOOoqmA1I=
github.com/jackc/pgproto3 v1.0.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
github.com/jackc/pgproto3 v1.1.0 h1:FYYE4yRw+AgI8wXIinMlNjBbp/UitDJwfj5LqqewP1A=
github.com/jackc/pgproto3 v1.1.0/go.mod h1:eR5FA3leWg7p9aeAqi37XOTgTIbkABlvcPB3E5rlc78=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190419041544-9b6a681f50bf h1:wI8d/uq9/RfZOe6bKOpC4Skd4VgkTIGZqxmHu6IQGb8=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190419041544-9b6a681f50bf/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db h1:UpaKn/gYxzH6/zWyRQH1S260zvKqwJJ4h8+Kf09ooh0=
github.com/jackc/pgproto3/v2 v2.0.0-alpha1.0.20190420180111-c116219b62db/go.mod h1:bhq50y+xrl9n5mRYyCBFKkpRVTLYJVWeCc+mEAI3yXA=
github.com/jackc/puddle v0.0.0-20190413234325-e4ced69a3a2b h1:cIcUpcEP55F/QuZWEtXyqHoWk+IV4TBiLjtBkeq/Q1c=
@@ -68,8 +54,6 @@ golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a h1:Igim7XhdOpBnWPuYJ70XcN
golang.org/x/crypto v0.0.0-20190411191339-88737f569e3a/go.mod h1:WFFai1msRO1wXaEeE5yQxYXgSfI8pQAWXbQop6sCtWE=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33 h1:I6FyU15t786LL7oL/hn43zqTuEGr4PN7F4XJ1p4E3Y8=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223 h1:DH4skfRX4EBpamg7iV4ZlCpblAHI6s6TDM39bFZumv8=
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e h1:nFYrTHrdrAOpShe27kaFHjsqYSEQ0KWqdWLu3xuZJts=
golang.org/x/sys v0.0.0-20190403152447-81d4e9dc473e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"testing"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"context"
"io"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
// LargeObjects is a structure used to access the large objects API. It is only
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"testing"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
)
func TestLargeObjects(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@
package log15adapter
import (
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
)
// Log15Logger interface defines the subset of
+1 -1
View File
@@ -3,7 +3,7 @@
package logrusadapter
import (
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/sirupsen/logrus"
)
+1 -1
View File
@@ -5,7 +5,7 @@ package testingadapter
import (
"fmt"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
)
// TestingLogger interface defines the subset of testing.TB methods used by this
+1 -1
View File
@@ -2,7 +2,7 @@
package zapadapter
import (
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"go.uber.org/zap"
"go.uber.org/zap/zapcore"
)
+1 -1
View File
@@ -2,7 +2,7 @@
package zerologadapter
import (
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/rs/zerolog"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"time"
"github.com/jackc/pgio"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
const (
+12 -12
View File
@@ -7,8 +7,8 @@ import (
"github.com/pkg/errors"
"github.com/jackc/pgproto3"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgproto3/v2"
"github.com/jackc/pgx/v4/pgtype"
)
type Server struct {
@@ -224,7 +224,7 @@ where (
SendMessage(&pgproto3.ParameterDescription{}),
SendMessage(&pgproto3.RowDescription{
Fields: []pgproto3.FieldDescription{
{Name: "oid",
{Name: []byte("oid"),
TableOID: 1247,
TableAttributeNumber: 65534,
DataTypeOID: 26,
@@ -232,7 +232,7 @@ where (
TypeModifier: -1,
Format: 0,
},
{Name: "typname",
{Name: []byte("typname"),
TableOID: 1247,
TableAttributeNumber: 1,
DataTypeOID: 19,
@@ -435,7 +435,7 @@ where (
steps = append(steps, step)
}
steps = append(steps, SendMessage(&pgproto3.CommandComplete{CommandTag: "SELECT 163"}))
steps = append(steps, SendMessage(&pgproto3.CommandComplete{CommandTag: []byte("SELECT 163")}))
steps = append(steps, SendMessage(&pgproto3.ReadyForQuery{TxStatus: 'I'}))
steps = append(steps, []Step{
@@ -450,7 +450,7 @@ where (
SendMessage(&pgproto3.ParameterDescription{}),
SendMessage(&pgproto3.RowDescription{
Fields: []pgproto3.FieldDescription{
{Name: "oid",
{Name: []byte("oid"),
TableOID: 1247,
TableAttributeNumber: 65534,
DataTypeOID: 26,
@@ -458,7 +458,7 @@ where (
TypeModifier: -1,
Format: 0,
},
{Name: "typname",
{Name: []byte("typname"),
TableOID: 1247,
TableAttributeNumber: 1,
DataTypeOID: 19,
@@ -475,7 +475,7 @@ where (
ExpectMessage(&pgproto3.Execute{}),
ExpectMessage(&pgproto3.Sync{}),
SendMessage(&pgproto3.BindComplete{}),
SendMessage(&pgproto3.CommandComplete{CommandTag: "SELECT 0"}),
SendMessage(&pgproto3.CommandComplete{CommandTag: []byte("SELECT 0")}),
SendMessage(&pgproto3.ReadyForQuery{TxStatus: 'I'}),
}...)
@@ -491,7 +491,7 @@ where (
SendMessage(&pgproto3.ParameterDescription{}),
SendMessage(&pgproto3.RowDescription{
Fields: []pgproto3.FieldDescription{
{Name: "oid",
{Name: []byte("oid"),
TableOID: 1247,
TableAttributeNumber: 65534,
DataTypeOID: 26,
@@ -499,7 +499,7 @@ where (
TypeModifier: -1,
Format: 0,
},
{Name: "typname",
{Name: []byte("typname"),
TableOID: 1247,
TableAttributeNumber: 1,
DataTypeOID: 19,
@@ -507,7 +507,7 @@ where (
TypeModifier: -1,
Format: 0,
},
{Name: "typbasetype",
{Name: []byte("typbasetype"),
TableOID: 1247,
TableAttributeNumber: 65534,
DataTypeOID: 26,
@@ -524,7 +524,7 @@ where (
ExpectMessage(&pgproto3.Execute{}),
ExpectMessage(&pgproto3.Sync{}),
SendMessage(&pgproto3.BindComplete{}),
SendMessage(&pgproto3.CommandComplete{CommandTag: "SELECT 0"}),
SendMessage(&pgproto3.CommandComplete{CommandTag: []byte("SELECT 0")}),
SendMessage(&pgproto3.ReadyForQuery{TxStatus: 'I'}),
}...)
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
)
func TestParseUntypedTextArray(t *testing.T) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -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"
)
+3 -3
View File
@@ -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) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"github.com/pkg/errors"
"github.com/jackc/pgx/pgtype"
"github.com/jackc/pgx/v4/pgtype"
"github.com/shopspring/decimal"
)
@@ -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"
)
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+3 -3
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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)
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net"
"testing"
_ "github.com/jackc/pgx/stdlib"
_ "github.com/jackc/pgx/v4/stdlib"
_ "github.com/lib/pq"
)
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+3 -3
View File
@@ -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) {
+3 -3
View File
@@ -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"
)
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+2 -2
View File
@@ -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) {
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/jackc/puddle"
)
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"os"
"testing"
"github.com/jackc/pgx/pool"
"github.com/jackc/pgx/v4/pool"
"github.com/stretchr/testify/require"
)
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"time"
"github.com/jackc/pgconn"
"github.com/jackc/pgx"
"github.com/jackc/pgx/v4"
"github.com/jackc/puddle"
)
+1 -1
View File
@@ -6,7 +6,7 @@ import (
"testing"
"time"
"github.com/jackc/pgx/pool"
"github.com/jackc/pgx/v4/pool"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)

Some files were not shown because too many files have changed in this diff Show More