cvs: php4 /ext/oci8/ oci8.c
[email protected] ("Thies C. Arntzen")
| Newsgroups | php.version4 |
|---|---|
| Message-ID | <cvsthies959240685@cvsserver> |
thies Thu May 25 09:44:45 2000 EDT
Modified files:
/php4/ext/oci8 oci8.c
Log:
@- Uncommitted outstanding OCI8 transactions are now rolled back
@ before the connection is closed. (Thies)
Index: php4/ext/oci8/oci8.c
diff -u php4/ext/oci8/oci8.c:1.83 php4/ext/oci8/oci8.c:1.84
--- php4/ext/oci8/oci8.c:1.83 Wed May 24 00:30:21 2000
+++ php4/ext/oci8/oci8.c Thu May 25 09:44:45 2000
@@ -17,7 +17,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8.c,v 1.83 2000/05/23 22:30:21 hholzgra Exp $ */
+/* $Id: oci8.c,v 1.84 2000/05/25 07:44:45 thies Exp $ */
/* TODO list:
*
@@ -654,12 +654,14 @@
}
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);
}