2
0

Rows.Scan errors now include which argument caused error

This commit is contained in:
Jack Christensen
2015-11-20 14:02:49 -06:00
parent dd26ad0091
commit edfdaf15c6
4 changed files with 23 additions and 7 deletions
+4
View File
@@ -161,6 +161,10 @@ func TestConnQueryReadWrongTypeError(t *testing.T) {
t.Fatal("Expected Rows to have an error after an improper read but it didn't")
}
if rows.Err().Error() != "can't scan into dest[0]: Can't convert OID 23 to time.Time" {
t.Fatalf("Expected different Rows.Err(): %v", rows.Err())
}
ensureConnValid(t, conn)
}