!1031 fix two bugs about ROWNUM

Merge pull request !1031 from 周雄佳/davidzhou
This commit is contained in:
opengauss-bot
2021-06-16 20:09:01 +08:00
committed by Gitee
4 changed files with 7 additions and 4 deletions

View File

@ -270,7 +270,9 @@ void ExecReScan(PlanState* node)
}
/* reset the rownum */
node->ps_rownum = 0;
if (!node->do_not_reset_rownum) {
node->ps_rownum = 0;
}
/*
* If we have changed parameters, propagate that info.