From 30a7e2a6ea30e98772c16e28d3be8b2bec440bb8 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Mon, 11 Dec 2023 17:56:28 +0800 Subject: [PATCH] 1 --- dataset.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dataset.go b/dataset.go index deab701..b1864d6 100644 --- a/dataset.go +++ b/dataset.go @@ -13,6 +13,9 @@ type DataSet struct { func (this *DataSet) Next() bool { ret := this.rows.Next() + if !ret { + return ret + } this.GetColumns() this.values = []interface{}{} for i := 0; i < len(this.columns); i++ {