Skip to content

Commit ef81b7f

Browse files
committed
Remove duplicate initialization
This appears to be a merge mistake in 96ef323. We could put it back the way it was before JSON_TABLE and it'd be two lines shorter, but it's likely that JSON_TABLE will be back and will prefer things this way. It makes no other difference in practice. Backpatch to 15. Reported by Ranier Vilela Discussion: https://postgr.es/m/CAEudQAr4nOcNQskC4oBEZN4S+4heJ=1ch_ZKOxU+_Ef-FQSf-g@mail.gmail.com
1 parent 64387c5 commit ef81b7f

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
bool inFromCl)
20072007
{
20082008
RangeTblEntry *rte = makeNode(RangeTblEntry);
2009-
char *refname = alias ? alias->aliasname : pstrdup("xmltable");
2009+
char *refname;
20102010
Alias *eref;
20112011
int numaliases;
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)