pgtype Int2, Int4, and Int8 fields include bit size
e.g. Instead of Int it is Int64. This matches the pattern set by the database/sql types.
This commit is contained in:
@@ -205,7 +205,7 @@ func BenchmarkTypeMapScanInt4IntoBinaryDecoder(b *testing.B) {
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
if v != (pgtype.Int4{Int: 42, Valid: true}) {
|
||||
if v != (pgtype.Int4{Int32: 42, Valid: true}) {
|
||||
b.Fatal("scan failed due to bad value")
|
||||
}
|
||||
}
|
||||
@@ -241,7 +241,7 @@ func BenchmarkScanPlanScanInt4IntoBinaryDecoder(b *testing.B) {
|
||||
if err != nil {
|
||||
b.Fatal(err)
|
||||
}
|
||||
if v != (pgtype.Int4{Int: 42, Valid: true}) {
|
||||
if v != (pgtype.Int4{Int32: 42, Valid: true}) {
|
||||
b.Fatal("scan failed due to bad value")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user