Commit 6e70bb19 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #292 from Juliens/master

Add length in the OCI8 bindParam
parents 576b6fda 8d7e9c99
......@@ -121,10 +121,14 @@ class OCI8Statement implements \IteratorAggregate, Statement
$lob->writeTemporary($variable, OCI_TEMP_BLOB);
return oci_bind_by_name($this->_sth, $column, $lob, -1, OCI_B_BLOB);
} else {
if ($length!=null) {
return oci_bind_by_name($this->_sth, $column, $variable, $length);
} else {
return oci_bind_by_name($this->_sth, $column, $variable);
}
}
}
/**
* Closes the cursor, enabling the statement to be executed again.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment