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

Commit255efa2

Browse files
committed
Fix the RTE_NAMEDTUPLESTORE case in get_rte_attribute_is_dropped().
Problems pointed out by Andres Freund and Thomas Munro.
1 parentfa117ee commit255efa2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎src/backend/parser/parse_relation.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2891,12 +2891,12 @@ get_rte_attribute_is_dropped(RangeTblEntry *rte, AttrNumber attnum)
28912891
Assert(rte->enrname);
28922892

28932893
/*
2894-
* We checked when we loadedctecoltypes for the tuplestore
2895-
*thatInvalidOid was only used for dropped columns, so it is
2896-
*safeto count on that here.
2894+
* We checked when we loadedcoltypes for the tuplestore that
2895+
* InvalidOid was only used for dropped columns, so it is safe
2896+
* to count on that here.
28972897
*/
28982898
result=
2899-
(list_nth(rte->coltypes,attnum-1)!=InvalidOid);
2899+
((list_nth_oid(rte->coltypes,attnum-1)==InvalidOid));
29002900
}
29012901
break;
29022902
caseRTE_JOIN:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp