Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed the "bindParameter" method on the OCI8Statement class to correc…

…tly pass the "length" parameter to the "oci_bind_by_name" function when the type isn't a PDO::PARAM_LOB.
  • Loading branch information...
commit 4bc7c7fa9f6fdda855b85cfa8c35fe2241deba20 1 parent 443af38
Christian authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
View
4 lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php
@@ -112,7 +112,7 @@ public function bindValue($param, $value, $type = null)
/**
* {@inheritdoc}
*/
- public function bindParam($column, &$variable, $type = null,$length = null)
+ public function bindParam($column, &$variable, $type = null, $length = null)
{
$column = isset($this->_paramMap[$column]) ? $this->_paramMap[$column] : $column;
@@ -122,7 +122,7 @@ public function bindParam($column, &$variable, $type = null,$length = null)
return oci_bind_by_name($this->_sth, $column, $lob, -1, OCI_B_BLOB);
} else {
- return oci_bind_by_name($this->_sth, $column, $variable);
+ return oci_bind_by_name($this->_sth, $column, $variable, $length);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.