Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit4f63e11

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 forthat> change if that's OK.>Simple change -- patch attached.test=# select * from myfoo1() as z; z---- 1 2 3(3 rows)Joe Conway
1 parentdd6513a commit4f63e11

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
elseif (functyptype=='p'&&funcrettype==RECORDOID)
813813
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp