]> 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:17:40 +0000 (11:17 +0300)
commit1ef60dab7049ffac52dee60b5788b6c7bc1f9d67
treeb4fe01576a9152096dc9b9e5192b1521f4f110cb
parent041dceb2590081c397daeda84ff28ffc71a51fb0
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