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() {
|
for rows.Next() {
|
||||||
values := []interface{}{}
|
values := []interface{}{}
|
||||||
for i := 0; i < len(this.columns); i++ {
|
for i := 0; i < len(this.columns); i++ {
|
||||||
@ -58,8 +59,8 @@ func (this *NewDataSet) Next() bool {
|
|||||||
if this.numOfReaded >= int64(len(this.rows)) {
|
if this.numOfReaded >= int64(len(this.rows)) {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
this.numOfReaded += 1
|
|
||||||
this.currRow = this.rows[this.numOfReaded]
|
this.currRow = this.rows[this.numOfReaded]
|
||||||
|
this.numOfReaded += 1
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user