OSDN Git Service

Repair missing heap_endscan() in OperatorUpd().
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Apr 1999 00:50:57 +0000 (00:50 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 23 Apr 1999 00:50:57 +0000 (00:50 +0000)
src/backend/catalog/pg_operator.c

index 5cad3d2..5f3739c 100644 (file)
@@ -7,7 +7,7 @@
  *
  *
  * IDENTIFICATION
- *       $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.34 1999/04/11 02:30:59 tgl Exp $
+ *       $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.35 1999/04/23 00:50:57 tgl Exp $
  *
  * NOTES
  *       these routines moved here from commands/define.c and somewhat cleaned up.
@@ -916,6 +916,7 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
        }
 
        /* if commutator and negator are different, do two updates */
+
        if (HeapTupleIsValid(tup) &&
                !(OidIsValid(((Form_pg_operator) GETSTRUCT(tup))->oprcom)))
        {
@@ -935,6 +936,8 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
                replaces[Anum_pg_operator_oprcom - 1] = ' ';
        }
 
+       heap_endscan(pg_operator_scan);
+
        /* check and update the negator, if necessary */
        opKey[0].sk_argument = ObjectIdGetDatum(negId);