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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user