Skip to content

Commit 9a9719e

Browse files
committed
Allow error query to start transaction in autocommit off mode.
1 parent 3bb7e1e commit 9a9719e

File tree

1 file changed

+5
-2
lines changed
  • src/backend/access/transam

1 file changed

+5
-2
lines changed

src/backend/access/transam/xact.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.143 2003/03/14 22:40:31 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/access/transam/xact.c,v 1.144 2003/03/21 04:33:15 momjian Exp $
1212
*
1313
* NOTES
1414
* Transaction aborts can now occur two ways:
@@ -1341,7 +1341,10 @@ AbortCurrentTransaction(void)
13411341
*/
13421342
case TBLOCK_DEFAULT:
13431343
AbortTransaction();
1344-
CleanupTransaction();
1344+
if (autocommit || suppressChain)
1345+
CleanupTransaction();
1346+
else
1347+
s->blockState = TBLOCK_ABORT;
13451348
break;
13461349

13471350
/*

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy