When targetlist is NULL, ExecTargetList was passing back a
authorTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 19:22:40 +0000 (19:22 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sat, 12 Jun 1999 19:22:40 +0000 (19:22 +0000)
commit6af993163e42a7bbec97ed89262d5e98b474aee5
tree4df1cf7d4e3f290a90a835df445cc3a83e3dc796
parent280e9249935fecef186938a9900bb35eb7f20674
When targetlist is NULL, ExecTargetList was passing back a
pointer to palloc'd but uninitialized memory.  This is not cool; anyone looking
at the returned 'tuple' would at best coredump and at worst behave in a
bizarre and irreproducible way.  Fix it to return a predictable value,
namely a correctly-set-up palloc'd tuple containing zero attributes.
I believe this fix is both safe and critical.
src/backend/executor/execQual.c