Skip to content

Commit 5473d77

Browse files
committed
Return rows.Err as final result of BindAll func.
1 parent ae05c66 commit 5473d77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sqldb.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func BindAll(rows *sql.Rows, err error, binder Binder) error {
3939
return normalize(err)
4040
}
4141
}
42-
return nil
42+
return normalize(rows.Err())
4343
}
4444

4545
// ExecuteStatements receives a *sql.DB or *sql.Tx as well as one or more SQL statements (separated by ';')

0 commit comments

Comments
 (0)