Add qscan to iterator

This commit is contained in:
Vladimir Mihailenco 2020-08-07 09:52:31 +03:00
parent 2aca83490d
commit 16ab0f2ac3
1 changed files with 3 additions and 2 deletions

View File

@ -41,9 +41,10 @@ func (it *ScanIterator) Next() bool {
}
// Fetch next page.
if it.cmd._args[0] == "scan" {
switch it.cmd._args[0] {
case "scan", "qscan":
it.cmd._args[1] = it.cmd.cursor
} else {
default:
it.cmd._args[2] = it.cmd.cursor
}