From b033c86139942f0e9dd4c2fb9d3d71b005473f08 Mon Sep 17 00:00:00 2001 From: Alexander Rakushin Date: Tue, 19 Nov 2019 21:11:36 +0300 Subject: [PATCH] Fix breaks named parameters in OCI8Statement --- lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php index 9972c9df7aa..e6fb2faa01a 100644 --- a/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php +++ b/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php @@ -273,7 +273,7 @@ public function bindValue($param, $value, int $type = ParameterType::STRING) : v */ public function bindParam($param, &$variable, int $type = ParameterType::STRING, ?int $length = null) : void { - $param = $this->_paramMap[$param]; + $param = $this->_paramMap[$param] ?? $param; if ($type === ParameterType::LARGE_OBJECT) { $lob = oci_new_descriptor($this->_dbh, OCI_D_LOB);