diff options
-rw-r--r-- | ext/pgsql/pgsql.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 3e193254c0..3c68c0fcdd 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -175,10 +175,11 @@ static int _rollback_transactions(zend_rsrc_list_entry *rsrc) PGconn *link; PGLS_FETCH(); - if (rsrc->type != le_plink) return 0; - - link = (PGconn *)rsrc->ptr; + if (rsrc->type != le_plink) + return 0; + link = (PGconn *) rsrc->ptr; + PGG(ignore_notices) = 1; PQexec(link,"BEGIN;ROLLBACK;"); PGG(ignore_notices) = 0; |