]> 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:20:59 +0000 (11:20 +0300)
commitad885e2677754c8adbfa847d20812ce6b7594eb6
tree9e67f6c334575ad8e3f8dd51dbffd12f378224d6
parent1ae092ae14b0eaf5a2d3ae8908d0edfd3cc39dd4
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