Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 20 lines (18 sloc) 0.875 kb
cb86ac2 @cyga response iterate callback
authored
1 diff --git a/src/pl/plpgsql/src/pl_comp.c b/src/pl/plpgsql/src/pl_comp.c
409c4a5 @cyga fix comment either
authored
2 index 578cae5..f579d98 100644
cb86ac2 @cyga response iterate callback
authored
3 --- a/src/pl/plpgsql/src/pl_comp.c
4 +++ b/src/pl/plpgsql/src/pl_comp.c
409c4a5 @cyga fix comment either
authored
5 @@ -1940,11 +1940,12 @@ build_row_from_class(Oid classOid)
6 classStruct = RelationGetForm(rel);
7 relname = RelationGetRelationName(rel);
8
9 - /* accept relation, sequence, view, or composite type entries */
10 + /* accept relation, sequence, view, composite type or foreign table entries */
cb86ac2 @cyga response iterate callback
authored
11 if (classStruct->relkind != RELKIND_RELATION &&
12 classStruct->relkind != RELKIND_SEQUENCE &&
13 classStruct->relkind != RELKIND_VIEW &&
14 - classStruct->relkind != RELKIND_COMPOSITE_TYPE)
15 + classStruct->relkind != RELKIND_COMPOSITE_TYPE &&
16 + classStruct->relkind != RELKIND_FOREIGN_TABLE)
17 ereport(ERROR,
18 (errcode(ERRCODE_WRONG_OBJECT_TYPE),
19 errmsg("relation \"%s\" is not a table", relname)));
Something went wrong with that request. Please try again.