1
This commit is contained in:
parent
1ac8c66634
commit
693a5ab7b0
@ -37,6 +37,7 @@ func (this *NewDataSet) init(rows *sql.Rows) {
|
||||
}
|
||||
}
|
||||
|
||||
q5.NewSlice(&this.rows, 0, 100)
|
||||
for rows.Next() {
|
||||
values := []interface{}{}
|
||||
for i := 0; i < len(this.columns); i++ {
|
||||
@ -58,8 +59,8 @@ func (this *NewDataSet) Next() bool {
|
||||
if this.numOfReaded >= int64(len(this.rows)) {
|
||||
return false
|
||||
}
|
||||
this.numOfReaded += 1
|
||||
this.currRow = this.rows[this.numOfReaded]
|
||||
this.numOfReaded += 1
|
||||
return true
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user