model-writtenrun 3319 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- David Rowley opened the thread with a patch adding MERGE to the PlannedStmt.hasReturning and hasModifyingCTE comments, which had become outdated after MERGE gained RETURNING support #1.
- David supported the hasModifyingCTE correction by showing that transformWithClause() already accepts MergeStmt and sets the flag that eventually reaches PlannedStmt #1.
- David committed the attached patch unchanged as 8559252095 and announced that it had been pushed #2.
- Dean Rasheed subsequently found more outdated comments and committed corrections covering RETURNING-list deparsing, Query.hasModifyingCTE, and PORTAL_ONE_RETURNING as 5c5bccef21, announcing the additional fix without posting a patchset #3.
- The thread ends with both sets of comment fixes committed and no outstanding work identified #3.