pgsql: Don't let transform_null_equals=on affect CASE foo WHEN NULL ...

Lists: pgsql-committers
From: Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Don't let transform_null_equals=on affect CASE foo WHEN NULL ...
Date: 2011-10-08 08:33:29
Message-ID: [email protected]
Views: Whole Thread | Raw Message | Download mbox | Resend email
Lists: pgsql-committers

Don't let transform_null_equals=on affect CASE foo WHEN NULL ... constructs.
transform_null_equals is only supposed to affect "foo = NULL" expressions
given directly by the user, not the internal "foo = NULL" expression
generated from CASE-WHEN.

This fixes bug #6242, reported by Sergey. Backpatch to all supported
branches.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ad885e2677754c8adbfa847d20812ce6b7594eb6

Modified Files
--------------
src/backend/parser/parse_expr.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)