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

Commit3fd1f4b

Browse files
committed
Remove duplicate initialization
This appears to be a merge mistake in96ef323. We could put itback the way it was before JSON_TABLE and it'd be two lines shorter, butit's likely that JSON_TABLE will be back and will prefer things thisway. It makes no other difference in practice.Backpatch to 15.Reported by Ranier VilelaDiscussion:https://postgr.es/m/CAEudQAr4nOcNQskC4oBEZN4S+4heJ=1ch_ZKOxU+_Ef-FQSf-g@mail.gmail.com
1 parent9320cfd commit3fd1f4b

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
@@ -2017,7 +2017,7 @@ addRangeTableEntryForTableFunc(ParseState *pstate,
20172017
boolinFromCl)
20182018
{
20192019
RangeTblEntry*rte=makeNode(RangeTblEntry);
2020-
char*refname=alias ?alias->aliasname :pstrdup("xmltable");
2020+
char*refname;
20212021
Alias*eref;
20222022
intnumaliases;
20232023

@@ -2035,7 +2035,7 @@ addRangeTableEntryForTableFunc(ParseState *pstate,
20352035
Assert(list_length(tf->coltypmods)==list_length(tf->colnames));
20362036
Assert(list_length(tf->colcollations)==list_length(tf->colnames));
20372037

2038-
refname=alias ?alias->aliasname :pstrdup("xmltable");
2038+
refname=alias ?alias->aliasname :pstrdup("xmltable");
20392039

20402040
rte->rtekind=RTE_TABLEFUNC;
20412041
rte->relid=InvalidOid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp