Commit 8d7e9c99 authored by Julien SALLEYRON's avatar Julien SALLEYRON

add length in oci_bind_by_name

parent 576b6fda
......@@ -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