diff --git a/code/PostgreSQLQuery.php b/code/PostgreSQLQuery.php index 2225918..2b35a6b 100644 --- a/code/PostgreSQLQuery.php +++ b/code/PostgreSQLQuery.php @@ -58,6 +58,7 @@ class PostgreSQLQuery extends Query public function getIterator() { + pg_result_seek($this->handle, 0); while ($data = $this->nextRecord()) { yield $data; }