mirror of
https://github.com/silverstripe/silverstripe-postgresql
synced 2024-10-22 17:05:45 +02:00
FIX Reset the result set on iterate
This commit is contained in:
parent
83219ed890
commit
bf4aca1e22
@ -58,6 +58,7 @@ class PostgreSQLQuery extends Query
|
||||
|
||||
public function getIterator()
|
||||
{
|
||||
pg_result_seek($this->handle, 0);
|
||||
while ($data = $this->nextRecord()) {
|
||||
yield $data;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user