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
+1 -3
View File
@@ -244,9 +244,7 @@ func TestScanPlanBinaryInt32ScanChangedType(t *testing.T) {
var d pgtype.Int4
err = plan.Scan(ci, pgtype.Int4OID, pgtype.BinaryFormatCode, src, &d)
require.NoError(t, err)
require.EqualValues(t, 42, d.Int)
require.True(t, d.Valid)
require.EqualError(t, err, pgtype.ErrScanTargetTypeChanged.Error())
}
func BenchmarkConnInfoScanInt4IntoGoInt32(b *testing.B) {