2
0

Convert int4 and int8 to new system

Note: purposely disabled some tests and composite support that needs to
be restored later in v5 development.
This commit is contained in:
Jack Christensen
2022-01-01 17:16:03 -06:00
parent 40fb889605
commit 0c0e28a70a
36 changed files with 1568 additions and 4267 deletions
-12
View File
@@ -5,7 +5,6 @@ import (
"testing"
"github.com/jackc/pgx/v5/pgtype"
"github.com/stretchr/testify/require"
)
func TestParseUntypedTextArray(t *testing.T) {
@@ -122,14 +121,3 @@ func TestParseUntypedTextArray(t *testing.T) {
}
}
}
// https://github.com/jackc/pgx/issues/881
func TestArrayAssignToEmptyToNonSlice(t *testing.T) {
var a pgtype.Int4Array
err := a.Set([]int32{})
require.NoError(t, err)
var iface interface{}
err = a.AssignTo(&iface)
require.EqualError(t, err, "cannot assign *pgtype.Int4Array to *interface {}")
}