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

Commit915c04f

Browse files
committed
Fix typmod exposed for scalar function in FROM, too.
On further reflection about commit4d02eb0, it occurs to me thatexpandRTE() had better agree with what addRangeTableEntryForFunction()is doing. So teach that about functions possibly having typmods, too.
1 parenta412f46 commit915c04f

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
@@ -2616,7 +2616,8 @@ expandRTE(RangeTblEntry *rte, int rtindex, int sublevels_up,
26162616
Var*varnode;
26172617

26182618
varnode=makeVar(rtindex,atts_done+1,
2619-
funcrettype,-1,
2619+
funcrettype,
2620+
exprTypmod(rtfunc->funcexpr),
26202621
exprCollation(rtfunc->funcexpr),
26212622
sublevels_up);
26222623
varnode->location=location;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp