diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-11-06 18:21:31 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-11-06 18:21:31 +0000 |
commit | f0395d50e9486e1a5691fe4bfab92d4800460c83 (patch) | |
tree | 71d1ff7586cdc77694e676b1b8d4ccaf8723d352 /src/backend/utils/adt/arrayfuncs.c | |
parent | 36e012e727116c629958b95c5aa94da99af31044 (diff) | |
download | postgresql-f0395d50e9486e1a5691fe4bfab92d4800460c83.tar.gz postgresql-f0395d50e9486e1a5691fe4bfab92d4800460c83.zip |
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.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
0 files changed, 0 insertions, 0 deletions