Skip to content

Commit

Permalink
Check rows.Err() on Load (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmlyons authored and taylorchu committed Jul 8, 2019
1 parent cb95004 commit a54124d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion load.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func Load(rows *sql.Rows, value interface{}) (int, error) {
break
}
}
return count, nil
return count, rows.Err()
}

func reflectAlloc(typ reflect.Type) reflect.Value {
Expand Down

0 comments on commit a54124d

Please sign in to comment.