summaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/array_userfuncs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2012-07-31 17:56:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2012-07-31 17:56:37 -0400
commitae47eb112f2332a8acff0cb33025a471d8d01222 (patch)
tree8d280655f968f4a5bb58c39329f7cc73b6c6bf56 /src/backend/utils/adt/array_userfuncs.c
parent706f792fc525258803fc6444af05ce264b26acc8 (diff)
Fix WITH attached to a nested set operation (UNION/INTERSECT/EXCEPT).
Parse analysis neglected to cover the case of a WITH clause attached to an intermediate-level set operation; it only handled WITH at the top level or WITH attached to a leaf-level SELECT. Per report from Adam Mackler. In HEAD, I rearranged the order of SelectStmt's fields to put withClause with the other fields that can appear on non-leaf SelectStmts. In back branches, leave it alone to avoid a possible ABI break for third-party code. Back-patch to 8.4 where WITH support was added.
Diffstat (limited to 'src/backend/utils/adt/array_userfuncs.c')
0 files changed, 0 insertions, 0 deletions