diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-02-02 21:49:09 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-02-02 21:49:09 +0000 |
commit | fffb5819ca9a48610c4a6f7ef45269ef2e506712 (patch) | |
tree | f1011f30f3f43e398f90966d4df2ea031a08fd02 /src/backend/access/gist/gistget.c | |
parent | b3a7e987a103e7734b5b89b54784fc9486cb13c5 (diff) | |
download | postgresql-fffb5819ca9a48610c4a6f7ef45269ef2e506712.tar.gz |
Adjust constant-folding of CASE expressions so that the simple comparison
form of CASE (eg, CASE 0 WHEN 1 THEN ...) can be constant-folded as it
was in 7.4. Also, avoid constant-folding result expressions that are
certainly unreachable --- the former coding was a bit cavalier about this
and could generate unexpected results for all-constant CASE expressions.
Add regression test cases. Per report from Vlad Marchenko.
Diffstat (limited to 'src/backend/access/gist/gistget.c')
0 files changed, 0 insertions, 0 deletions