We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f552823 commit 771ac1fCopy full SHA for 771ac1f
1 file changed
io/read/reader.go
@@ -78,7 +78,7 @@ func (r *Reader) QueryAll(ctx context.Context, emit func(row interface{}) error,
78
return fmt.Errorf("failed to read all %w", err)
79
}
80
81
- if rows != nil {
+ if rows != nil && rows.Err() != nil {
82
return fmt.Errorf("encounter error: %w", rows.Err())
83
84
0 commit comments