Make constant-folding produce sane output for COALESCE(NULL,NULL),
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Apr 2005 20:58:03 +0000 (20:58 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 10 Apr 2005 20:58:03 +0000 (20:58 +0000)
commit29028762a96741647681495fc16ede97d743107c
tree340bd709fdcc1b7a423d60345e508153ae20e06e
parent5c5c797cb29c2662362a05a49f78dbe9276cc5f1
Make constant-folding produce sane output for COALESCE(NULL,NULL),
that is a plain NULL and not a COALESCE with no inputs.  Fixes crash
reported by Michael Williamson.
src/backend/optimizer/util/clauses.c