2
0

Bump module version to v5

This commit is contained in:
Jack Christensen
2021-12-11 13:29:03 -06:00
parent 390bd79757
commit 72cc95e4dd
151 changed files with 287 additions and 287 deletions
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestACLItemArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestACLItemTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestBitTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestBoolArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestBoolTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestBoxTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestBPCharArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestChar3Transcode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestByteaArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestByteaTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestCIDTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestCIDRArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestCircleTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"testing"
"github.com/jackc/pgio"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"os"
"testing"
pgx "github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"fmt"
"os"
pgx "github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
pgx "github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
)
type MyType struct {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestDateArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestDateTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestDaterangeTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestEnumArrayTranscode(t *testing.T) {
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestFloat4ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestFloat4Transcode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestFloat8ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestFloat8Transcode(t *testing.T) {
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestHstoreArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestHstoreTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInetArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/assert"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt2ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt2Transcode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt4ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt4Transcode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt4rangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt8ArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt8Transcode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestInt8rangeTranscode(t *testing.T) {
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func BenchmarkQueryTextFormatDecode_PG_int4_to_Go_int16_1_rows_1_columns(b *testing.B) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5"
)
<%
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestJSONTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestJSONBArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestJSONBTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"context"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestLineTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestLsegTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestMacaddrArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestMacaddrTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestNameTranscode(t *testing.T) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestNumericArrayTranscode(t *testing.T) {
+3 -3
View File
@@ -9,8 +9,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
@@ -289,7 +289,7 @@ func TestNumericAssignTo(t *testing.T) {
{src: &pgtype.Numeric{Int: big.NewInt(42), Valid: true}, dst: &_i8, expected: _int8(42)},
{src: &pgtype.Numeric{Int: big.NewInt(0)}, dst: &pi8, expected: ((*int8)(nil))},
{src: &pgtype.Numeric{Int: big.NewInt(0)}, dst: &_pi8, expected: ((*_int8)(nil))},
{src: &pgtype.Numeric{Int: big.NewInt(1006), Exp: -2, Valid: true}, dst: &f64, expected: float64(10.06)}, // https://github.com/jackc/pgx/v4/pgtype/issues/27
{src: &pgtype.Numeric{Int: big.NewInt(1006), Exp: -2, Valid: true}, dst: &f64, expected: float64(10.06)}, // https://github.com/jackc/pgx/v5/pgtype/issues/27
{src: &pgtype.Numeric{Valid: true, NaN: true}, dst: &f64, expected: math.NaN()},
{src: &pgtype.Numeric{Valid: true, NaN: true}, dst: &f32, expected: float32(math.NaN())},
{src: &pgtype.Numeric{Valid: true, InfinityModifier: pgtype.Infinity}, dst: &f64, expected: math.Inf(1)},
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"math/big"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestNumrangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestOIDValueTranscode(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestPathTranscode(t *testing.T) {
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"net"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
_ "github.com/jackc/pgx/v4/stdlib"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
_ "github.com/jackc/pgx/v5/stdlib"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"context"
"errors"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgconn"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgconn"
"github.com/jackc/pgx/v5/pgtype"
)
type Querier interface {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestPolygonTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestQCharTranscode(t *testing.T) {
+3 -3
View File
@@ -6,9 +6,9 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
var recordTests = []struct {
+3 -3
View File
@@ -8,9 +8,9 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4"
"github.com/jackc/pgx/v4/pgtype"
_ "github.com/jackc/pgx/v4/stdlib"
"github.com/jackc/pgx/v5"
"github.com/jackc/pgx/v5/pgtype"
_ "github.com/jackc/pgx/v5/stdlib"
)
func MustConnectDatabaseSQL(t testing.TB, driverName string) *sql.DB {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestTextTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestTIDTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestTimeTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestTimestampArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestTimestamptzArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestTsrangeTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestUUIDArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/stretchr/testify/require"
)
+2 -2
View File
@@ -3,8 +3,8 @@ package pgtype_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestVarbitTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestVarcharArrayTranscode(t *testing.T) {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"reflect"
"testing"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype"
"github.com/jackc/pgx/v5/pgtype/testutil"
)
func TestXIDTranscode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Float8 float64
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestFloat8Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Int2 int16
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestInt2Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Int4 int32
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestInt4Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Int8 int64
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestInt8Transcode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Text string
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestTextTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Timestamp time.Time
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestTimestampTranscode(t *testing.T) {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"database/sql/driver"
"time"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type Timestamptz time.Time
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"testing"
"time"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestTimestamptzTranscode(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package zeronull
import (
"database/sql/driver"
"github.com/jackc/pgx/v4/pgtype"
"github.com/jackc/pgx/v5/pgtype"
)
type UUID [16]byte
+2 -2
View File
@@ -3,8 +3,8 @@ package zeronull_test
import (
"testing"
"github.com/jackc/pgx/v4/pgtype/testutil"
"github.com/jackc/pgx/v4/pgtype/zeronull"
"github.com/jackc/pgx/v5/pgtype/testutil"
"github.com/jackc/pgx/v5/pgtype/zeronull"
)
func TestUUIDTranscode(t *testing.T) {