]> granicus.if.org Git - postgresql/commit
Repair bug #2694 concerning an ARRAY[] construct whose inputs are empty
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 6 Nov 2006 18:21:58 +0000 (18:21 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 6 Nov 2006 18:21:58 +0000 (18:21 +0000)
commit5ae883f52b8d71d528691abc4bf8a02b2f5b8832
tree3ec34f1b91cc2dc48f80dfc8893695294d7e150f
parent4e4c165dad573f8fa186a09e755c4940dc730416
Repair bug #2694 concerning an ARRAY[] construct whose inputs are empty
sub-arrays.  Per discussion, if all inputs are empty arrays then result
must be an empty array too, whereas a mix of empty and nonempty arrays
should (and already did) draw an error.  In the back branches, the
construct was strict: any NULL input immediately yielded a NULL output;
so I left that behavior alone.  HEAD was simply ignoring NULL sub-arrays,
which doesn't seem very sensible.  For lack of a better idea it now
treats NULL sub-arrays the same as empty ones.
src/backend/executor/execQual.c