Обсуждение: pgsql: Don't let transform_null_equals=on affect CASE foo WHEN NULL ...

Поиск
Список
Период
Сортировка

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

От
Heikki Linnakangas
Дата:
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
------
REL8_3_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/3a2f6b570fbc6f71447c013e866d554fc515de0e

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