CVS update: php3/functions

From: Date: Wed, 10 Feb 1999 17:51:51 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4027@lists.php.net to get a copy of this message
Date: Wednesday February 10, 1999 @ 12:51 Author: thies Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv24369 Modified Files: oci8.c Log Message: commit and rollback work on the connection-context Index: php3/functions/oci8.c diff -c php3/functions/oci8.c:1.35 php3/functions/oci8.c:1.36 *** php3/functions/oci8.c:1.35 Wed Feb 10 12:29:28 1999 --- php3/functions/oci8.c Wed Feb 10 12:51:50 1999 *************** *** 32,38 **** +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.35 1999/02/10 17:29:28 thies Exp $ */ #include "php.h" #include "internal_functions.h" --- 32,38 ---- +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.36 1999/02/10 17:51:50 thies Exp $ */ #include "php.h" #include "internal_functions.h" *************** *** 1380,1410 **** add_method(return_value, "load", php3_oci8_loadlob); } ! /* {{{ proto string OCIRollback(int stmt) rollback the current context */ void php3_oci8_rollback(INTERNAL_FUNCTION_PARAMETERS) { ! pval *stmt; ! oci8_statement *statement; sword ociresult; OCI8_TLS_VARS; ! if (getParameters(ht, 1, &stmt) == FAILURE) { WRONG_PARAM_COUNT; } ! convert_to_long(stmt); ! statement = oci8_get_stmt(stmt->value.lval, "OCIRollback", list); ! if (statement == NULL) { RETURN_FALSE; } ! ociresult = OCITransRollback(statement->conn->pServiceContext,statement->conn->pError, (ub4)0); if (ociresult) { ! oci8_error(statement->conn->pError, "OCIRollback", ociresult); RETURN_FALSE; } --- 1380,1410 ---- add_method(return_value, "load", php3_oci8_loadlob); } ! /* {{{ proto string OCIRollback(int conn) rollback the current context */ void php3_oci8_rollback(INTERNAL_FUNCTION_PARAMETERS) { ! pval *conn; ! oci8_connection *connection; sword ociresult; OCI8_TLS_VARS; ! if (getParameters(ht, 1, &conn) == FAILURE) { WRONG_PARAM_COUNT; } ! convert_to_long(conn); ! connection = oci8_get_conn(conn->value.lval, "OCIRollback", list, plist); ! if (connection == NULL) { RETURN_FALSE; } ! ociresult = OCITransRollback(connection->pServiceContext,connection->pError, (ub4)0); if (ociresult) { ! oci8_error(connection->pError, "OCIRollback", ociresult); RETURN_FALSE; } *************** *** 1412,1442 **** } /* }}} */ ! /* {{{ proto string OCICommit(int stmt) commit the current context */ void php3_oci8_commit(INTERNAL_FUNCTION_PARAMETERS) { ! pval *stmt; ! oci8_statement *statement; sword ociresult; OCI8_TLS_VARS; ! if (getParameters(ht, 1, &stmt) == FAILURE) { WRONG_PARAM_COUNT; } ! convert_to_long(stmt); ! statement = oci8_get_stmt(stmt->value.lval, "OCICommit", list); ! if (statement == NULL) { RETURN_FALSE; } ! ociresult = OCITransCommit(statement->conn->pServiceContext,statement->conn->pError, (ub4)0); if (ociresult) { ! oci8_error(statement->conn->pError, "OCICommit", ociresult); RETURN_FALSE; } --- 1412,1442 ---- } /* }}} */ ! /* {{{ proto string OCICommit(int conn) commit the current context */ void php3_oci8_commit(INTERNAL_FUNCTION_PARAMETERS) { ! pval *conn; ! oci8_connection *connection; sword ociresult; OCI8_TLS_VARS; ! if (getParameters(ht, 1, &conn) == FAILURE) { WRONG_PARAM_COUNT; } ! convert_to_long(conn); ! connection = oci8_get_conn(conn->value.lval, "OCICommit", list, plist); ! if (connection == NULL) { RETURN_FALSE; } ! ociresult = OCITransCommit(connection->pServiceContext,connection->pError, (ub4)0); if (ociresult) { ! oci8_error(connection->pError, "OCICommit", ociresult); RETURN_FALSE; } -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#4027) next »