]> granicus.if.org Git - php/commitdiff
MFH: Bugfix #25404
authorMarcus Boerger <helly@php.net>
Sat, 6 Sep 2003 15:31:14 +0000 (15:31 +0000)
committerMarcus Boerger <helly@php.net>
Sat, 6 Sep 2003 15:31:14 +0000 (15:31 +0000)
ext/pgsql/pgsql.c

index 7eeaf5ea6093fb18383f61cb261c25f3ad01df64..2f478bab3c9fa8698a1ba079046e404db43c9ce1 100644 (file)
@@ -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;