Commit e769138
committed
Fix broken MemoizePath support in reparameterize_path().
It neglected to recurse to the subpath, meaning you'd get back
a path identical to the input. This could produce wrong query
results if the omission meant that the subpath fails to enforce
some join clause it should be enforcing. We don't have a test
case for this at the moment, but the code is obviously broken
and the fix is equally obvious. Back-patch to v14 where
Memoize was introduced.
Richard Guo
Discussion: https://postgr.es/m/CAMbWs4_R=ORpz=Lkn2q3ebPC5EuWyfZF+tmfCPVLBVK5W39mHA@mail.gmail.com1 parent 6eb2f0e commit e769138
1 file changed
+7
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3994 | 3994 | | |
3995 | 3995 | | |
3996 | 3996 | | |
| 3997 | + | |
3997 | 3998 | | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
3998 | 4004 | | |
3999 | | - | |
| 4005 | + | |
4000 | 4006 | | |
4001 | 4007 | | |
4002 | 4008 | | |
| |||
0 commit comments