From 4906c6518e09d56063c6c1e9594987467071bc35 Mon Sep 17 00:00:00 2001 From: Paulo Daniel Date: Tue, 15 Dec 2015 15:44:39 -0200 Subject: [PATCH] store value in instance array for reference --- lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php index 9753bee21e3..596e3520d58 100644 --- a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php +++ b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php @@ -71,6 +71,11 @@ class OCI8Statement implements \IteratorAggregate, Statement */ protected $_paramMap = array(); + /** + * @var array + */ + protected $_bindings = array(); + /** * Creates a new OCI8Statement that uses the given connection handle and SQL statement. * @@ -134,7 +139,8 @@ static public function convertPositionalToNamedPlaceholders($statement) */ public function bindValue($param, $value, $type = null) { - return $this->bindParam($param, $value, $type, null); + $this->_bindings[$param] = $value; + return $this->bindParam($param, $this->_bindings[$param], $type, null); } /**