From c3c4584ca298e30a942ad10fd7ae4c44ffa0f4a8 Mon Sep 17 00:00:00 2001 From: Scott Lepper Date: Tue, 8 Feb 2022 08:27:54 -0500 Subject: [PATCH] fix - check rows for any errors (#462) * check rows for any errors --- data/sqlutil/sql.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/data/sqlutil/sql.go b/data/sqlutil/sql.go index 4dc367ac7..87a81a9ff 100644 --- a/data/sqlutil/sql.go +++ b/data/sqlutil/sql.go @@ -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 }