Skip to content

Commit

Permalink
fix - check rows for any errors (#462)
Browse files Browse the repository at this point in the history
* check rows for any errors
  • Loading branch information
scottlepp authored Feb 8, 2022
1 parent c6bac65 commit c3c4584
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions data/sqlutil/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,9 @@ func FrameFromRows(rows *sql.Rows, rowLimit int64, converters ...Converter) (*da
i++
}

if err := rows.Err(); err != nil {
return frame, err
}

return frame, nil
}

0 comments on commit c3c4584

Please sign in to comment.