diff options
author | Marcus Boerger <helly@php.net> | 2003-09-06 15:31:14 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-09-06 15:31:14 +0000 |
commit | 9ec1245550c720fd20cce4e7ac13dcd5b7b76d42 (patch) | |
tree | 3cecd00a11640ca45889527ada4d32cc1f3ff769 | |
parent | aa1c8bdee57ba8955536eb492bd383a17a55fd82 (diff) | |
download | php-git-9ec1245550c720fd20cce4e7ac13dcd5b7b76d42.tar.gz |
MFH: Bugfix #25404
-rw-r--r-- | ext/pgsql/pgsql.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |