diff --git a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php index 9753bee21e3..513c9dce1c0 100644 --- a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php +++ b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php @@ -46,6 +46,11 @@ class OCI8Statement implements \IteratorAggregate, Statement */ protected $_conn; + /** + * @var array + */ + protected $_bindings = array(); + /** * @var string */ @@ -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); } /**