]> granicus.if.org Git - postgresql/commit
Don't let transform_null_equals=on affect CASE foo WHEN NULL ... constructs.
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 8 Oct 2011 08:17:40 +0000 (11:17 +0300)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Sat, 8 Oct 2011 08:21:04 +0000 (11:21 +0300)
commitc02e52dfdc18605f263aa67d3b2563551222f719
tree53ca9c7831978b63b0ae99ac412479ce88e8bec9
parentb77b6015d84a30caa31977af3667a7e42f6e82a1
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.
src/backend/parser/parse_expr.c