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
......@@ -122,7 +122,11 @@ class OCI8Statement implements \IteratorAggregate, Statement
return oci_bind_by_name($this->_sth, $column, $lob, -1, OCI_B_BLOB);
} else {
return oci_bind_by_name($this->_sth, $column, $variable);
if ($length!=null) {
return oci_bind_by_name($this->_sth, $column, $variable, $length);
} else {
return oci_bind_by_name($this->_sth, $column, $variable);
}
}
}
......
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