1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-14 18:42:34 +03:00

Un-break triggers declared for INSERT OR DELETE OR UPDATE. This worked

okay in 7.3, so I think it must have been busted in the recent triggers
patch.
This commit is contained in:
Tom Lane
2002-11-25 03:36:50 +00:00
parent 2eafcf68d5
commit 0aa5b6866e
3 changed files with 12 additions and 10 deletions

View File

@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.140 2002/11/23 03:59:07 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.141 2002/11/25 03:36:50 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@ -199,7 +199,7 @@ CreateTrigger(CreateTrigStmt *stmt, bool forConstraint)
if (stmt->row)
TRIGGER_SETT_ROW(tgtype);
for (i = 0; i < 2 && stmt->actions[i]; i++)
for (i = 0; stmt->actions[i]; i++)
{
switch (stmt->actions[i])
{