1
This commit is contained in:
parent
af0bd957c2
commit
c767718aa4
@ -375,7 +375,7 @@ func (this *dbPool) StreamPageQuery(
|
||||
}
|
||||
finalySql += fmt.Sprintf(" LIMIT %d ", pageSize + 1)
|
||||
//GetSysLog().Info("finalySql:%s", finalySql)
|
||||
this.queryOne(
|
||||
this.query(
|
||||
dataSource,
|
||||
finalySql,
|
||||
params,
|
||||
@ -388,8 +388,9 @@ func (this *dbPool) StreamPageQuery(
|
||||
for rows.Next() {
|
||||
if (rows.NumOfReaded() <= int64(pageSize)) {
|
||||
fillCb(rows)
|
||||
} else if (rows.NumOfReaded() == int64(pageSize)) {
|
||||
pagination.NextCursor = q5.ToInt64(rows.GetByName("idx"))
|
||||
if (rows.NumOfReaded() == int64(pageSize)) {
|
||||
pagination.NextCursor = q5.ToInt64(rows.GetByName("idx"))
|
||||
}
|
||||
} else if (rows.NumOfReaded() > int64(pageSize)) {
|
||||
pagination.Remaining = 1
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user