Skip to content

Commit

Permalink
all iterator support row count
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Jan 28, 2020
1 parent 4734c75 commit 504827a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/Job/Space/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function run()
$indexName = $index['name'];

try {
if ($this->iterator != 0) {
if (!in_array($this->iterator, [0, 2])) {
throw new Exception("No total rows for non-equals iterator type");
}
[$total] = $this->getMapper()->getClient()
Expand Down

0 comments on commit 504827a

Please sign in to comment.