Skip to content

Commit

Permalink
fix fetchAll
Browse files Browse the repository at this point in the history
  • Loading branch information
kikimor committed Mar 16, 2015
1 parent 0f8e5a8 commit 7b9e0a9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Oci8Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -582,11 +582,13 @@ public function fetchColumn($colNumber = null)
* or an object with properties corresponding to each column name.
*/
public function fetchAll(
$fetchMode = PDO::FETCH_BOTH,
$fetchMode = null,
$fetchArgument = null,
$ctorArgs = array())
{
$this->setFetchMode($fetchMode, $fetchArgument, $ctorArgs);
if ($fetchMode !== null) {
$this->setFetchMode($fetchMode, $fetchArgument, $ctorArgs);
}

$results = array();
while ($row = $this->fetch())
Expand Down

0 comments on commit 7b9e0a9

Please sign in to comment.