Skip to content

Commit 771ac1f

Browse files
committed
updated mapping
1 parent f552823 commit 771ac1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io/read/reader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (r *Reader) QueryAll(ctx context.Context, emit func(row interface{}) error,
7878
return fmt.Errorf("failed to read all %w", err)
7979
}
8080

81-
if rows != nil {
81+
if rows != nil && rows.Err() != nil {
8282
return fmt.Errorf("encounter error: %w", rows.Err())
8383
}
8484

0 commit comments

Comments
 (0)