FIX Reset the result set on iterate

This commit is contained in:
Dan Hensby 2020-03-29 15:17:34 +01:00
parent 83219ed890
commit bf4aca1e22
No known key found for this signature in database
GPG Key ID: F76D6B5FE0626A99

View File

@ -58,6 +58,7 @@ class PostgreSQLQuery extends Query
public function getIterator()
{
pg_result_seek($this->handle, 0);
while ($data = $this->nextRecord()) {
yield $data;
}