1
This commit is contained in:
parent
faa5f840af
commit
191048f40d
@ -387,6 +387,7 @@ func (this *dbPool) StreamPageQuery(
|
|||||||
pagination.PreviousCursor = cursor
|
pagination.PreviousCursor = cursor
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
if (rows.NumOfReaded() <= int64(pageSize)) {
|
if (rows.NumOfReaded() <= int64(pageSize)) {
|
||||||
|
pagination.Count += 1
|
||||||
fillCb(rows)
|
fillCb(rows)
|
||||||
if (rows.NumOfReaded() == int64(pageSize)) {
|
if (rows.NumOfReaded() == int64(pageSize)) {
|
||||||
pagination.NextCursor = q5.ToInt64(rows.GetByName("idx"))
|
pagination.NextCursor = q5.ToInt64(rows.GetByName("idx"))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user