Remove useless variable.
flatten_join_alias_vars_mutator counted attnums, but didn't do anything with the count (no doubt it did at one time). Noted by buildfarm member seawasp.
This commit is contained in:
parent
641a9b7167
commit
c2d81ee902
@ -774,16 +774,13 @@ flatten_join_alias_vars_mutator(Node *node,
|
|||||||
RowExpr *rowexpr;
|
RowExpr *rowexpr;
|
||||||
List *fields = NIL;
|
List *fields = NIL;
|
||||||
List *colnames = NIL;
|
List *colnames = NIL;
|
||||||
AttrNumber attnum;
|
|
||||||
ListCell *lv;
|
ListCell *lv;
|
||||||
ListCell *ln;
|
ListCell *ln;
|
||||||
|
|
||||||
attnum = 0;
|
|
||||||
Assert(list_length(rte->joinaliasvars) == list_length(rte->eref->colnames));
|
Assert(list_length(rte->joinaliasvars) == list_length(rte->eref->colnames));
|
||||||
forboth(lv, rte->joinaliasvars, ln, rte->eref->colnames)
|
forboth(lv, rte->joinaliasvars, ln, rte->eref->colnames)
|
||||||
{
|
{
|
||||||
newvar = (Node *) lfirst(lv);
|
newvar = (Node *) lfirst(lv);
|
||||||
attnum++;
|
|
||||||
/* Ignore dropped columns */
|
/* Ignore dropped columns */
|
||||||
if (newvar == NULL)
|
if (newvar == NULL)
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user