pgsql: Fix DELETE/UPDATE FOR PORTION OF with rules

Started by Peter Eisentrautabout 2 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

Fix DELETE/UPDATE FOR PORTION OF with rules

Previously, these test cases would give internal errors or crash. The
fix is to add some missing fields of ForPortionOfExpr to
expression_tree_walker.

Author: jian he <jian.universality@gmail.com>
Reviewed-by: Kirill Reshke <reshkekirill@gmail.com>
Reviewed-by: Paul A Jungwirth <pj@illuminatedcomputing.com>
Discussion: /messages/by-id/CACJufxHs1Hs00EqsZ4NbuAjmYzMzjJyP1sAj12Ne=cBsEVmQOA@mail.gmail.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/33db6c4baf17e0fdf2ac08f7d050155985c0d7e3

Modified Files
--------------
src/backend/nodes/nodeFuncs.c | 4 ++
src/test/regress/expected/for_portion_of.out | 55 ++++++++++++++++++++++++++++
src/test/regress/sql/for_portion_of.sql | 33 +++++++++++++++++
3 files changed, 92 insertions(+)