From e6b6ca73a1ad43c8950d037e9ac5de08d8e05f5c Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 30 Aug 2024 17:27:44 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4dataSet.closed=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dataset.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dataset.go b/dataset.go index 9df986c..505120a 100644 --- a/dataset.go +++ b/dataset.go @@ -55,9 +55,10 @@ func (this *DataSet) init(rows *sql.Rows) { } func (this *DataSet) Next() bool { + /* if this.closed { panic("NewDataSet is closed") - } + }*/ if this.numOfReaded >= int64(len(this.rows)) { return false }