Commit c42926f1 authored by Tom Lane's avatar Tom Lane

Repair missing heap_endscan() in OperatorUpd().

parent 3888b53a
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
* *
* *
* IDENTIFICATION * 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 * NOTES
* these routines moved here from commands/define.c and somewhat cleaned up. * these routines moved here from commands/define.c and somewhat cleaned up.
...@@ -916,6 +916,7 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId) ...@@ -916,6 +916,7 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
} }
/* if commutator and negator are different, do two updates */ /* if commutator and negator are different, do two updates */
if (HeapTupleIsValid(tup) && if (HeapTupleIsValid(tup) &&
!(OidIsValid(((Form_pg_operator) GETSTRUCT(tup))->oprcom))) !(OidIsValid(((Form_pg_operator) GETSTRUCT(tup))->oprcom)))
{ {
...@@ -935,6 +936,8 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId) ...@@ -935,6 +936,8 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
replaces[Anum_pg_operator_oprcom - 1] = ' '; replaces[Anum_pg_operator_oprcom - 1] = ' ';
} }
heap_endscan(pg_operator_scan);
/* check and update the negator, if necessary */ /* check and update the negator, if necessary */
opKey[0].sk_argument = ObjectIdGetDatum(negId); opKey[0].sk_argument = ObjectIdGetDatum(negId);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment