1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-09 06:21:09 +03:00

Unbreak comments on composite type attributes.

Report and diagnosis by Peter Eisentraut.
This commit is contained in:
Robert Haas
2010-10-19 07:21:58 -04:00
parent 9df96f9bb1
commit 262c1a42dc
3 changed files with 8 additions and 1 deletions

View File

@@ -473,7 +473,7 @@ get_object_address_attribute(ObjectType objtype, List *objname,
/* Extract relation name and open relation. */
attname = strVal(lfirst(list_tail(objname)));
relname = list_truncate(list_copy(objname), list_length(objname) - 1);
relation = heap_openrv(makeRangeVarFromNameList(relname), lockmode);
relation = relation_openrv(makeRangeVarFromNameList(relname), lockmode);
reloid = RelationGetRelid(relation);
/* Look up attribute and construct return value. */