Skip to content

Commit

Permalink
Fixed OCI8 parameter binding
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesportwoodii committed May 4, 2016
1 parent 3df22cc commit c704868
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@ class OCI8Statement implements \IteratorAggregate, Statement
*/
protected $_conn;

/**
* @var array
*/
protected $_bindings = array();

/**
* @var string
*/
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit c704868

Please sign in to comment.