Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Zend\Db

Oci Result fixed logic error resulting in sequence warning
  • Loading branch information...
commit b0fc3d59192ecf4eb2c8e0f80b401e9fb8d3d82d 1 parent 5119e83
@ralphschindler authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 library/Zend/Db/Adapter/Driver/Oci8/Result.php
View
7 library/Zend/Db/Adapter/Driver/Oci8/Result.php
@@ -145,14 +145,11 @@ public function current()
*/
protected function loadData()
{
- $this->currentComplete = false;
- $this->currentData = null;
-
+ $this->currentComplete = true;
$this->currentData = oci_fetch_assoc($this->resource);
if ($this->currentData !== false) {
$this->position++;
- $this->currentComplete = true;
return true;
}
return false;
@@ -192,7 +189,7 @@ public function rewind()
public function valid()
{
if ($this->currentComplete) {
- return true;
+ return ($this->currentData !== false);
}
return $this->loadData();
Please sign in to comment.
Something went wrong with that request. Please try again.