|
7 | 7 | * Portions Copyright (c) 1994, Regents of the University of California |
8 | 8 | * |
9 | 9 | * IDENTIFICATION |
10 | | - * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.135 2002/10/14 16:51:29 tgl Exp $ |
| 10 | + * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.136 2002/10/21 19:55:49 tgl Exp $ |
11 | 11 | * |
12 | 12 | *------------------------------------------------------------------------- |
13 | 13 | */ |
@@ -1991,11 +1991,9 @@ DeferredTriggerSetState(ConstraintsSetStmt *stmt) |
1991 | 1991 | List*l; |
1992 | 1992 |
|
1993 | 1993 | /* |
1994 | | - * If called outside a transaction block, we can safely return: this |
1995 | | - * command cannot effect any subsequent transactions, and there are no |
1996 | | - * "session-level" trigger settings. |
| 1994 | + * Ignore call if we aren't in a transaction. |
1997 | 1995 | */ |
1998 | | -if (!IsTransactionBlock()) |
| 1996 | +if (deftrig_cxt==NULL) |
1999 | 1997 | return; |
2000 | 1998 |
|
2001 | 1999 | /* |
|