From c704868d733383b43ad68dfd3a58ea63a521f128 Mon Sep 17 00:00:00 2001 From: "Charles R. Portwood II" Date: Wed, 4 May 2016 13:31:30 -0500 Subject: [PATCH] Fixed OCI8 parameter binding @implements, @see https://github.com/doctrine/dbal/pull/2262 --- 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..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); } /**