diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-21 22:06:20 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-10-21 22:06:20 +0000 |
commit | 200b15161556a2bc6e6b0cccd08be1ca3a438643 (patch) | |
tree | c520e1a6420f079c6b87594bd9687031f8e8ecc4 /src/include | |
parent | f724c164d3b9194555a7a7ee10bbb4bfb63caa7a (diff) |
Fix places that were using IsTransactionBlock() as an (inadequate) check
that they'd get to commit immediately on finishing. There's now a
centralized routine PreventTransactionChain() that implements the
necessary tests.
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/access/xact.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/access/xact.h b/src/include/access/xact.h index b74b9d4cdca..e16771231d3 100644 --- a/src/include/access/xact.h +++ b/src/include/access/xact.h @@ -7,7 +7,7 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $Id: xact.h,v 1.45 2002/08/30 22:18:07 tgl Exp $ + * $Id: xact.h,v 1.46 2002/10/21 22:06:20 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -113,6 +113,7 @@ extern void EndTransactionBlock(void); extern bool IsTransactionBlock(void); extern void UserAbortTransactionBlock(void); extern void AbortOutOfAnyTransaction(void); +extern void PreventTransactionChain(void *stmtNode, const char *stmtType); extern void RecordTransactionCommit(void); |