Content-Length: 272637 | pFad | http://github.com/postgrespro/postgres_cluster/commit/255efa241f460ee4f4c4c98c8cdd7457807f3af9

68 Fix the RTE_NAMEDTUPLESTORE case in get_rte_attribute_is_dropped(). · postgrespro/postgres_cluster@255efa2 · GitHub
Skip to content

Commit 255efa2

Browse files
committed
Fix the RTE_NAMEDTUPLESTORE case in get_rte_attribute_is_dropped().
Problems pointed out by Andres Freund and Thomas Munro.
1 parent fa117ee commit 255efa2

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 loaded ctecoltypes for the tuplestore
2895-
* that InvalidOid was only used for dropped columns, so it is
2896-
* safe to count on that here.
2894+
* We checked when we loaded coltypes 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
case RTE_JOIN:

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/255efa241f460ee4f4c4c98c8cdd7457807f3af9

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy