Commit 9a9719e4 authored by Bruce Momjian's avatar Bruce Momjian

Allow error query to start transaction in autocommit off mode.

parent 3bb7e1ef
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* Transaction aborts can now occur two ways: * Transaction aborts can now occur two ways:
...@@ -1341,7 +1341,10 @@ AbortCurrentTransaction(void) ...@@ -1341,7 +1341,10 @@ AbortCurrentTransaction(void)
*/ */
case TBLOCK_DEFAULT: case TBLOCK_DEFAULT:
AbortTransaction(); AbortTransaction();
CleanupTransaction(); if (autocommit || suppressChain)
CleanupTransaction();
else
s->blockState = TBLOCK_ABORT;
break; break;
/* /*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment