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

add length in oci_bind_by_name

parent 576b6fda
...@@ -122,7 +122,11 @@ class OCI8Statement implements \IteratorAggregate, Statement ...@@ -122,7 +122,11 @@ class OCI8Statement implements \IteratorAggregate, Statement
return oci_bind_by_name($this->_sth, $column, $lob, -1, OCI_B_BLOB); return oci_bind_by_name($this->_sth, $column, $lob, -1, OCI_B_BLOB);
} else { } 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