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

Commit6cb93be

Browse files
committed
Convert misleading while loop into an if condition
This seems to be leftover fromea15e18 and from when we used to evaluateSRFs at each node.Since there is an unconditional "return" at the end of the loop body, only1 loop is ever possible, so we can just change this into an if condition.There is no actual bug being fixed here so no back-patch. It seems fine tojust fix this anomaly in master only.Author: Greg NancarrowDiscussion:https://postgr.es/m/CAJcOf-d7T1q0az-D8evWXnsuBZjigT04WkV5hCAOEJQZRWy28w@mail.gmail.com
1 parentfbe9b80 commit6cb93be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/backend/executor/nodeResult.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ ExecResult(PlanState *pstate)
103103
* called, OR that we failed the constant qual check. Either way, now we
104104
* are through.
105105
*/
106-
while (!node->rs_done)
106+
if (!node->rs_done)
107107
{
108108
outerPlan=outerPlanState(node);
109109

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp