Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc42926f

Browse files
committed
Repair missing heap_endscan() in OperatorUpd().
1 parent3888b53 commitc42926f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

‎src/backend/catalog/pg_operator.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.34 1999/04/11 02:30:59 tgl Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/catalog/pg_operator.c,v 1.35 1999/04/23 00:50:57 tgl Exp $
1111
*
1212
* NOTES
1313
* these routines moved here from commands/define.c and somewhat cleaned up.
@@ -916,6 +916,7 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
916916
}
917917

918918
/* if commutator and negator are different, do two updates */
919+
919920
if (HeapTupleIsValid(tup)&&
920921
!(OidIsValid(((Form_pg_operator)GETSTRUCT(tup))->oprcom)))
921922
{
@@ -935,6 +936,8 @@ OperatorUpd(Oid baseId, Oid commId, Oid negId)
935936
replaces[Anum_pg_operator_oprcom-1]=' ';
936937
}
937938

939+
heap_endscan(pg_operator_scan);
940+
938941
/* check and update the negator, if necessary */
939942
opKey[0].sk_argument=ObjectIdGetDatum(negId);
940943

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp