Repair bug #2694 concerning an ARRAY[] construct whose inputs are empty

Tom Lane <tgl@sss.pgh.pa.us>

Commit: fc8c5fbf5d7763b070f50b1afa85c7f955a83d77
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2006-11-06T18:21:47Z
Releases: 8.0.10
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.

Files

PathChange+/−
src/backend/executor/execQual.c modified +36 −3