1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-09 15:47:23 +02:00

* seek() or rowCount() in unbuffered mode throws exceptions

* out of range seek() throws exception
* deprecated DibiDriver::errorInfo
* fixed seek(0) on first iteration
* added DibiDatabaseException::catchError() & restore() for converting errors to exceptions
This commit is contained in:
David Grudl
2007-11-12 01:39:26 +00:00
parent 5ee6a19f93
commit ea00d5d37d
14 changed files with 184 additions and 223 deletions

View File

@@ -74,7 +74,7 @@ final class DibiResultIterator implements Iterator
public function rewind()
{
$this->pointer = 0;
@$this->result->seek($this->offset);
$this->result->seek($this->offset);
$this->row = $this->result->fetch();
}