cvs: php-src /ext/pgsql pgsql.c
| From: | Marcus Boerger | Date: | Sat, 06 Sep 2003 15:30:29 +0000 |
| Subject: | cvs: php-src /ext/pgsql pgsql.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-23661@lists.php.net to get a copy of this message | ||
helly Sat Sep 6 11:30:29 2003 EDT
Modified files:
/php-src/ext/pgsql pgsql.c
Log:
Bugfix #25404
Index: php-src/ext/pgsql/pgsql.c
diff -u php-src/ext/pgsql/pgsql.c:1.294 php-src/ext/pgsql/pgsql.c:1.295
--- php-src/ext/pgsql/pgsql.c:1.294 Thu Aug 28 19:04:27 2003
+++ php-src/ext/pgsql/pgsql.c Sat Sep 6 11:30:28 2003
@@ -19,7 +19,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: pgsql.c,v 1.294 2003/08/28 23:04:27 helly Exp $ */
+/* $Id: pgsql.c,v 1.295 2003/09/06 15:30:28 helly Exp $ */
#include <stdlib.h>
@@ -351,7 +351,9 @@
#if HAVE_PGTRANSACTIONSTATUS && HAVE_PQPROTOCOLVERSION
res = PQexec(link,"ROLLBACK;");
#else
- res = PQexec(link,"BEGIN;ROLLBACK;");
+ res = PQexec(link,"BEGIN;");
+ PQclear(res);
+ res = PQexec(link,"ROLLBACK;");
#endif
PQclear(res);
PGG(ignore_notices) = orig;