移除dataSet.closed判断

This commit is contained in:
aozhiwei 2024-08-30 17:27:44 +08:00
parent cc336fdc0a
commit e6b6ca73a1

View File

@ -55,9 +55,10 @@ func (this *DataSet) init(rows *sql.Rows) {
} }
func (this *DataSet) Next() bool { func (this *DataSet) Next() bool {
/*
if this.closed { if this.closed {
panic("NewDataSet is closed") panic("NewDataSet is closed")
} }*/
if this.numOfReaded >= int64(len(this.rows)) { if this.numOfReaded >= int64(len(this.rows)) {
return false return false
} }