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

Commitef81b7f

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 parent64387c5 commitef81b7f

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
@@ -2006,7 +2006,7 @@ addRangeTableEntryForTableFunc(ParseState *pstate,
20062006
boolinFromCl)
20072007
{
20082008
RangeTblEntry*rte=makeNode(RangeTblEntry);
2009-
char*refname=alias ?alias->aliasname :pstrdup("xmltable");
2009+
char*refname;
20102010
Alias*eref;
20112011
intnumaliases;
20122012

@@ -2024,7 +2024,7 @@ addRangeTableEntryForTableFunc(ParseState *pstate,
20242024
Assert(list_length(tf->coltypmods)==list_length(tf->colnames));
20252025
Assert(list_length(tf->colcollations)==list_length(tf->colnames));
20262026

2027-
refname=alias ?alias->aliasname :pstrdup("xmltable");
2027+
refname=alias ?alias->aliasname :pstrdup("xmltable");
20282028

20292029
rte->rtekind=RTE_TABLEFUNC;
20302030
rte->relid=InvalidOid;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp