diff --git a/src/backend/parser/parse_relation.c b/src/backend/parser/parse_relation.c index 6732dc54b5..8a15c0f7cb 100644 --- a/src/backend/parser/parse_relation.c +++ b/src/backend/parser/parse_relation.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.74 2002/08/06 05:33:29 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.75 2002/08/06 05:34:10 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -807,7 +807,7 @@ addRangeTableEntryForFunction(ParseState *pstate, elog(ERROR, "Too many column aliases specified for function %s", funcname); if (numaliases == 0) - eref->colnames = makeList1(makeString(funcname)); + eref->colnames = makeList1(makeString(eref->aliasname)); } else if (functyptype == 'p' && funcrettype == RECORDOID) {