From 7b9e0a92a06abcb2708187f28247c6222929ef81 Mon Sep 17 00:00:00 2001 From: kikimor Date: Mon, 16 Mar 2015 16:12:23 +0500 Subject: [PATCH] fix fetchAll --- Oci8Statement.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Oci8Statement.php b/Oci8Statement.php index 081631f..c08ae97 100644 --- a/Oci8Statement.php +++ b/Oci8Statement.php @@ -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())