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

Commit6fa391b

Browse files
committed
Avoid masking a function parameter name with a local variable name.
No actual bug here, but it might confuse readers, so change the nameof the local variable.Ashutosh Bapat
1 parentbd673e8 commit6fa391b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎src/backend/optimizer/path/joinpath.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ add_paths_to_joinrel(PlannerInfo *root,
131131
*/
132132
foreach(lc,root->join_info_list)
133133
{
134-
SpecialJoinInfo*sjinfo= (SpecialJoinInfo*)lfirst(lc);
134+
SpecialJoinInfo*sjinfo2= (SpecialJoinInfo*)lfirst(lc);
135135

136136
/*
137137
* SJ is relevant to this join if we have some part of its RHS
@@ -140,19 +140,19 @@ add_paths_to_joinrel(PlannerInfo *root,
140140
* join has already been proven legal.) If the SJ is relevant, it
141141
* presents constraints for joining to anything not in its RHS.
142142
*/
143-
if (bms_overlap(joinrel->relids,sjinfo->min_righthand)&&
144-
!bms_overlap(joinrel->relids,sjinfo->min_lefthand))
143+
if (bms_overlap(joinrel->relids,sjinfo2->min_righthand)&&
144+
!bms_overlap(joinrel->relids,sjinfo2->min_lefthand))
145145
extra.param_source_rels=bms_join(extra.param_source_rels,
146146
bms_difference(root->all_baserels,
147-
sjinfo->min_righthand));
147+
sjinfo2->min_righthand));
148148

149149
/* full joins constrain both sides symmetrically */
150-
if (sjinfo->jointype==JOIN_FULL&&
151-
bms_overlap(joinrel->relids,sjinfo->min_lefthand)&&
152-
!bms_overlap(joinrel->relids,sjinfo->min_righthand))
150+
if (sjinfo2->jointype==JOIN_FULL&&
151+
bms_overlap(joinrel->relids,sjinfo2->min_lefthand)&&
152+
!bms_overlap(joinrel->relids,sjinfo2->min_righthand))
153153
extra.param_source_rels=bms_join(extra.param_source_rels,
154154
bms_difference(root->all_baserels,
155-
sjinfo->min_lefthand));
155+
sjinfo2->min_lefthand));
156156
}
157157

158158
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp