cvs: php4 /ext/oci8/ oci8.c

From: Date: Thu, 25 May 2000 07:44:45 +0000
Subject: cvs: php4 /ext/oci8/ oci8.c
Groups: php.version4 
Request: Send a blank email to php-version4+get-15722@lists.php.net to get a copy of this message
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); }

« previous php.version4 (#15722) next »