Skip to content

Commit

Permalink
Merge pull request #474 from davars/master
Browse files Browse the repository at this point in the history
Return rows.Err() instead of ignoring it
  • Loading branch information
VojtechVitek authored Dec 10, 2018
2 parents 5597521 + 3a88508 commit 1edc03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sqlbuilder/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ func fetchRows(iter *iterator, dst interface{}) error {

dstv.Elem().Set(slicev)

return nil
return rows.Err()
}

func fetchResult(iter *iterator, itemT reflect.Type, columns []string) (reflect.Value, error) {
Expand Down

0 comments on commit 1edc03a

Please sign in to comment.