Content-Length: 277696 | pFad | http://github.com/postgrespro/postgres/commit/3fd1f4b9cd1e374e76e23dd37dfd6ab03b6ef935

09 Remove duplicate initialization · postgrespro/postgres@3fd1f4b · GitHub
Skip to content

Commit 3fd1f4b

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 9320cfd commit 3fd1f4b

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
bool inFromCl)
20182018
{
20192019
RangeTblEntry *rte = makeNode(RangeTblEntry);
2020-
char *refname = alias ? alias->aliasname : pstrdup("xmltable");
2020+
char *refname;
20212021
Alias *eref;
20222022
int numaliases;
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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/3fd1f4b9cd1e374e76e23dd37dfd6ab03b6ef935

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy