Skip to content

Commit 4f63e11

Browse files
committed
>> Hm. I'd sort of expect the "z" to become both the table and column
>> alias in this case. What do you think? > > I guess that would make sense. I'll make a separate patch just for that > change if that's OK. > Simple change -- patch attached. test=# select * from myfoo1() as z; z ---- 1 2 3 (3 rows) Joe Conway
1 parent dd6513a commit 4f63e11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/parser/parse_relation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.74 2002/08/06 05:33:29 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/parser/parse_relation.c,v 1.75 2002/08/06 05:34:10 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -807,7 +807,7 @@ addRangeTableEntryForFunction(ParseState *pstate,
807807
elog(ERROR, "Too many column aliases specified for function %s",
808808
funcname);
809809
if (numaliases == 0)
810-
eref->colnames = makeList1(makeString(funcname));
810+
eref->colnames = makeList1(makeString(eref->aliasname));
811811
}
812812
else if (functyptype == 'p' && funcrettype == RECORDOID)
813813
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy