1
0
mirror of https://github.com/php/php-src.git synced 2026-04-07 16:13:32 +02:00

@- Uncommitted outstanding OCI8 transactions are now rolled back

@  before the connection is closed. (Thies)
This commit is contained in:
Thies C. Arntzen
2000-05-25 07:44:45 +00:00
parent e319b5f6a5
commit ff53dde157

View File

@@ -654,12 +654,14 @@ _oci_conn_list_dtor(oci_connection *connection)
}
if (connection->pServiceContext) {
/*
connection->error =
OCITransCommit(connection->pServiceContext,
connection->pError,
(ub4)0);
*/
connection->error =
OCITransRollback(connection->pServiceContext,
connection->pError,
(ub4)0);
if (connection->error) {
oci_error(connection->pError, "failed to rollback outstanding transactions!", connection->error);
}
OCIHandleFree((dvoid *) connection->pServiceContext, (ub4) OCI_HTYPE_SVCCTX);
}