Fix mishandling of whole-row Vars referencing a view or sub-select.
If such a Var appeared within a nested sub-select, we failed to translate it
correctly during pullup of the view, because the recursive call to
replace_rte_variables_mutator was looking for the wrong sublevels_up value.
Bug was introduced during the addition of the PlaceHolderVar mechanism.
Per bug #5514 from Marcos Castedo.
prepjointree.c (r18.104.22.168 -> r22.214.171.124)
subselect.out (r1.22 -> r126.96.36.199)
subselect.sql (r1.14 -> r188.8.131.52)
pgsql-committers by date
|Next:||From: Heikki Linnakangas||Date: 2010-06-21 09:47:29|
|Subject: pgsql: In a PL/pgSQL "FOR cursor" statement, the statements executed in |
|Previous:||From: Tom Lane||Date: 2010-06-21 00:14:48|
|Subject: pgsql: Fix mishandling of whole-row Vars referencing a view or |