2
0

Improve Scan error messages

This commit is contained in:
Jack Christensen
2022-07-09 21:47:39 -05:00
parent b662ab6767
commit 7974a102fc
3 changed files with 15 additions and 7 deletions
+1 -1
View File
@@ -79,7 +79,7 @@ func TestForEachRowScanError(t *testing.T) {
actualResults = append(actualResults, []any{a, b})
return nil
})
require.EqualError(t, err, "can't scan into dest[0]: cannot scan OID 25 in text format into *int")
require.EqualError(t, err, "can't scan into dest[0]: cannot scan text (OID 25) in text format into *int")
require.Equal(t, pgconn.CommandTag{}, ct)
})
}