helly Mon Jul 21 16:53:00 2003 EDT Modified files: /php-src/ext/pgsql pgsql.c Log: Reset vars when reusing a persistent connection as requested from postgres developers Index: php-src/ext/pgsql/pgsql.c diff -u php-src/ext/pgsql/pgsql.c:1.280 php-src/ext/pgsql/pgsql.c:1.281 --- php-src/ext/pgsql/pgsql.c:1.280 Mon Jul 21 16:49:47 2003 +++ php-src/ext/pgsql/pgsql.c Mon Jul 21 16:53:00 2003 @@ -19,7 +19,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pgsql.c,v 1.280 2003/07/21 20:49:47 helly Exp $ */ +/* $Id: pgsql.c,v 1.281 2003/07/21 20:53:00 helly Exp $ */ #include <stdlib.h> @@ -623,6 +623,11 @@ zend_hash_del(&EG(persistent_list),str.c,str.len+1); goto err; } + } + if (atof(PG_VERSION) >= 7.2) { + PGresult *pg_result; + pg_result = PQexec(le->ptr, "RESET ALL"); + PQclear(pg_result); } pgsql = (PGconn *) le->ptr; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php