diff options
author | Marcus Boerger <helly@php.net> | 2003-09-06 15:30:28 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2003-09-06 15:30:28 +0000 |
commit | 5d1dbdbfd23006165e5bac6eb6ec39775b35ea26 (patch) | |
tree | dc043da163ce4da3ab54839f4ef5b3557a184989 | |
parent | f9734f810ce635355f4d97354986751c675cc134 (diff) | |
download | php-git-5d1dbdbfd23006165e5bac6eb6ec39775b35ea26.tar.gz |
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 f96abae70a..8ad85502c9 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -351,7 +351,9 @@ static int _rollback_transactions(zend_rsrc_list_entry *rsrc TSRMLS_DC) #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; |