From 9a9719e4821006b7db426c18c17e7acb08d64a4b Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Fri, 21 Mar 2003 04:33:15 +0000 Subject: [PATCH] Allow error query to start transaction in autocommit off mode. --- src/backend/access/transam/xact.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/backend/access/transam/xact.c b/src/backend/access/transam/xact.c index 98ea4f82ba..3f172dddfc 100644 --- a/src/backend/access/transam/xact.c +++ b/src/backend/access/transam/xact.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.143 2003/03/14 22:40:31 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.144 2003/03/21 04:33:15 momjian Exp $ * * NOTES * Transaction aborts can now occur two ways: @@ -1341,7 +1341,10 @@ AbortCurrentTransaction(void) */ case TBLOCK_DEFAULT: AbortTransaction(); - CleanupTransaction(); + if (autocommit || suppressChain) + CleanupTransaction(); + else + s->blockState = TBLOCK_ABORT; break; /*