From: Tom Lane Date: Fri, 23 Apr 1999 00:50:57 +0000 (+0000) Subject: Repair missing heap_endscan() in OperatorUpd(). X-Git-Tag: REL6_5~363 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c42926f10bc5be88aac9302054ceba36944ceb76;p=postgresql Repair missing heap_endscan() in OperatorUpd(). --- diff --git a/src/backend/catalog/pg_operator.c b/src/backend/catalog/pg_operator.c index 5cad3d2034..5f3739c321 100644 --- a/src/backend/catalog/pg_operator.c +++ b/src/backend/catalog/pg_operator.c @@ -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);