- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit4384ecc
committed
Propagate CTE property flags when copying a CTE list into a rule.
rewriteRuleAction() neglected this step, although it was careful topropagate other similar flags such as hasSubLinks or hasRowSecurity.Omitting to transfer hasRecursive is just cosmetic at the moment,but omitting hasModifyingCTE is a live bug, since the executorcertainly looks at that.The proposed test case only fails back to v10, but since the executorexamines hasModifyingCTE in 9.x as well, I suspect that a test casecould be devised that fails in older branches. Given the nearnessof the release deadline, though, I'm not going to spend time lookingfor a better test.Report and patch by Greg Nancarrow, cosmetic changes by meDiscussion:https://postgr.es/m/CAJcOf-fAdj=nDKMsRhQzndm-O13NY4dL6xGcEvdX5Xvbbi0V7g@mail.gmail.com1 parent5ad0337 commit4384ecc
1 file changed
+6
-0
lines changedLines changed: 6 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
504 | 504 |
| |
505 | 505 |
| |
506 | 506 |
| |
| 507 | + | |
| 508 | + | |
| 509 | + | |
507 | 510 |
| |
508 | 511 |
| |
509 | 512 |
| |
| |||
525 | 528 |
| |
526 | 529 |
| |
527 | 530 |
| |
| 531 | + | |
| 532 | + | |
| 533 | + | |
528 | 534 |
| |
529 | 535 |
| |
530 | 536 |
| |
|
0 commit comments
Comments
(0)