CVS update: php3/functions

From: Date: Fri, 12 Feb 1999 08:48:00 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-4063@lists.php.net to get a copy of this message
Date: Friday February 12, 1999 @ 3:48 Author: thies Update of /repository/php3/functions In directory asf:/u/temp/cvs-serv13654/functions Modified Files: oci8.c php3_oci8.h Log Message: OCIExec will build up the columns only once for a statement (so you can reuse select statements as well!!) Index: php3/functions/oci8.c diff -c php3/functions/oci8.c:1.39 php3/functions/oci8.c:1.40 *** php3/functions/oci8.c:1.39 Thu Feb 11 10:19:40 1999 --- php3/functions/oci8.c Fri Feb 12 03:47:58 1999 *************** *** 32,38 **** +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.39 1999/02/11 15:19:40 thies Exp $ */ #include "php.h" #include "internal_functions.h" --- 32,38 ---- +----------------------------------------------------------------------+ */ ! /* $Id: oci8.c,v 1.40 1999/02/12 08:47:58 thies Exp $ */ #include "php.h" #include "internal_functions.h" *************** *** 751,757 **** return 0; } ! if (stmttype == OCI_STMT_SELECT) { statement->columns = emalloc(sizeof(HashTable)); if (!statement->columns || --- 751,761 ---- return 0; } ! if (stmttype == OCI_STMT_SELECT && (statement->executed == 0)) { ! ! /* we only need to do the define step is this very statement is executed the first time! */ ! ! statement->executed++; statement->columns = emalloc(sizeof(HashTable)); if (!statement->columns || Index: php3/functions/php3_oci8.h diff -c php3/functions/php3_oci8.h:1.21 php3/functions/php3_oci8.h:1.22 *** php3/functions/php3_oci8.h:1.21 Wed Feb 10 09:36:12 1999 --- php3/functions/php3_oci8.h Fri Feb 12 03:47:58 1999 *************** *** 83,88 **** --- 83,89 ---- HashTable *columns; int ncolumns; HashTable *binds; + int executed; } oci8_statement; typedef struct { -- 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 (#4063) next »