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); } /**