mirror of
https://github.com/postgres/postgres.git
synced 2025-04-27 22:56:53 +03:00
Repair missing heap_endscan() in OperatorUpd().
This commit is contained in:
parent
3888b53a58
commit
c42926f10b
@ -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)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* 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)
|
|||||||
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);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user