Fix typo that caused equalTriggerDescs() to return false in cases where

the two trigger sets were logically equal, but not in the same order.
Caught by Holger Krug (hkrug@rationalizer.com).
REL7_2_STABLE
Tom Lane 24 years ago
parent 2843a13e51
commit 685a66cdfe
  1. 4
      src/backend/commands/trigger.c

@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.100 2002/01/03 23:21:23 tgl Exp $ * $Header: /cvsroot/pgsql/src/backend/commands/trigger.c,v 1.101 2002/01/15 16:52:47 tgl Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
@ -805,7 +805,7 @@ equalTriggerDescs(TriggerDesc *trigdesc1, TriggerDesc *trigdesc2)
*/ */
for (j = 0; j < trigdesc2->numtriggers; j++) for (j = 0; j < trigdesc2->numtriggers; j++)
{ {
trig2 = trigdesc2->triggers + i; trig2 = trigdesc2->triggers + j;
if (trig1->tgoid == trig2->tgoid) if (trig1->tgoid == trig2->tgoid)
break; break;
} }

Loading…
Cancel
Save