Process withCheckOption exprs in setrefs.c

Stephen Frost <sfrost@snowman.net>

Commit: c4bee09c0e1fc7fb2281ba1e125ab17c5e9a20e7
Author: Stephen Frost <sfrost@snowman.net>
Date: 2014-09-23T00:22:16Z
Releases: 9.4.0
Process withCheckOption exprs in setrefs.c

While withCheckOption exprs had been handled in many cases by
happenstance, they need to be handled during set_plan_references and
more specifically down in set_plan_refs for ModifyTable plan nodes.
This is to ensure that the opfuncid's are set for operators referenced
in the withCheckOption exprs.

Identified as an issue by Thom Brown

Patch by Dean Rasheed

Back-patch to 9.4, where withCheckOption was introduced.

Files