cvs: php-src /ext/oci8 oci8_statement.c
| From: | Antony Dovgal | Date: | Tue, 05 Jun 2007 07:48:16 +0000 |
| Subject: | cvs: php-src /ext/oci8 oci8_statement.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44641@lists.php.net to get a copy of this message | ||
tony2001 Tue Jun 5 07:48:16 2007 UTC
Modified files:
/php-src/ext/oci8 oci8_statement.c
Log:
fix #41594 (Statement cache is flushed too frequently)
http://cvs.php.net/viewvc.cgi/php-src/ext/oci8/oci8_statement.c?r1=1.44&r2=1.45&diff_format=u
Index: php-src/ext/oci8/oci8_statement.c
diff -u php-src/ext/oci8/oci8_statement.c:1.44 php-src/ext/oci8/oci8_statement.c:1.45
--- php-src/ext/oci8/oci8_statement.c:1.44 Thu Mar 1 23:28:13 2007
+++ php-src/ext/oci8/oci8_statement.c Tue Jun 5 07:48:16 2007
@@ -25,7 +25,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: oci8_statement.c,v 1.44 2007/03/01 23:28:13 tony2001 Exp $ */
+/* $Id: oci8_statement.c,v 1.45 2007/06/05 07:48:16 tony2001 Exp $ */
#ifdef HAVE_CONFIG_H
@@ -82,7 +82,7 @@
php_oci_error(connection->err, connection->errcode TSRMLS_CC);
#if HAVE_OCI_STMT_PREPARE2
- PHP_OCI_CALL(OCIStmtRelease, (statement->stmt, statement->err, NULL, 0,
OCI_STRLS_CACHE_DELETE));
+ PHP_OCI_CALL(OCIStmtRelease, (statement->stmt, statement->err, NULL, 0, OCI_DEFAULT));
PHP_OCI_CALL(OCIHandleFree,(statement->err, OCI_HTYPE_ERROR));
#else
PHP_OCI_CALL(OCIHandleFree,(statement->stmt, OCI_HTYPE_STMT));
@@ -746,7 +746,7 @@
if (statement->stmt) {
#if HAVE_OCI_STMT_PREPARE2
if (statement->last_query_len) { /* FIXME: magical */
- PHP_OCI_CALL(OCIStmtRelease, (statement->stmt, statement->err, NULL, 0,
OCI_STRLS_CACHE_DELETE));
+ PHP_OCI_CALL(OCIStmtRelease, (statement->stmt, statement->err, NULL, 0, OCI_DEFAULT));
} else {
PHP_OCI_CALL(OCIHandleFree, (statement->stmt, OCI_HTYPE_STMT));
}