If you are using Save() on an update statement, PHP will throw a warning similar to "OCILobWrite: OCI_INVALID_HANDLE..." if your update statement did not catch any rows with its where clause.
(PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0)
OCILob::save — Saves data to the large object
$data
, int $offset
= ?
) : bool
Saves data
to the large object.
data
The data to be saved.
offset
Can be used to indicate offset from the beginning of the large object.
Retorna true
em caso de sucesso ou false
em caso de falha.
Versão | Descrição |
---|---|
8.0.0, PECL OCI8 3.0.0 | The OCI-Lob class was renamed to OCILob to align with PHP naming standards. |
If you are using Save() on an update statement, PHP will throw a warning similar to "OCILobWrite: OCI_INVALID_HANDLE..." if your update statement did not catch any rows with its where clause.
When you get "OCI-Lob::save(): OCI_INVALID_HANDLE in ..." try
oci_execute($stid, OCI_NO_AUTO_COMMIT);
$clob->save($data);
oci_commit($conn);