From: Marcus Boerger Date: Sat, 6 Sep 2003 15:31:14 +0000 (+0000) Subject: MFH: Bugfix #25404 X-Git-Tag: php-4.3.4RC1~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9ec1245550c720fd20cce4e7ac13dcd5b7b76d42;p=php MFH: Bugfix #25404 --- diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 7eeaf5ea60..2f478bab3c 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -319,7 +319,9 @@ static int _rollback_transactions(zend_rsrc_list_entry *rsrc TSRMLS_DC) } orig = PGG(ignore_notices); PGG(ignore_notices) = 1; - res = PQexec(link,"BEGIN;ROLLBACK;"); + res = PQexec(link,"BEGIN;"); + PQclear(res); + res = PQexec(link,"ROLLBACK;"); PQclear(res); PGG(ignore_notices) = orig;