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

Commitd76886c

Browse files
committed
Dept of second thoughts: keep aliasp_item in sync with tlistitem.
Commitd5b760e wasn't quite right, on second thought: if thecaller didn't ask for column names then it would happily emitmore Vars than if the caller did ask for column names. Thisis surely not a good idea. Advance the aliasp_item whether ornot we're preparing a colnames list.
1 parentd5b760e commitd76886c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎src/backend/parser/parse_relation.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2221,7 +2221,6 @@ expandRTE(RangeTblEntry *rte, int rtindex, int sublevels_up,
22212221
char*label=strVal(lfirst(aliasp_item));
22222222

22232223
*colnames=lappend(*colnames,makeString(pstrdup(label)));
2224-
aliasp_item=lnext(aliasp_item);
22252224
}
22262225

22272226
if (colvars)
@@ -2237,6 +2236,8 @@ expandRTE(RangeTblEntry *rte, int rtindex, int sublevels_up,
22372236

22382237
*colvars=lappend(*colvars,varnode);
22392238
}
2239+
2240+
aliasp_item=lnext(aliasp_item);
22402241
}
22412242
}
22422243
break;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp