Skip to content

Commit

Permalink
total rows for non-equals iterator type
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Jan 28, 2020
1 parent 9bbbe36 commit 6072c12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions php/Job/Space/Select.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ public function run()
$indexName = $indexes[$this->index]['name'];

try {
if ($this->index != 0) {
throw new Exception("No total rows for non-equals iterator type");
}
[$total] = $this->getMapper()->getClient()
->call("box.space.$this->space.index.$indexName:count", $key);
} catch (Exception $e) {
Expand Down

0 comments on commit 6072c12

Please sign in to comment.