Received: from maia.hub.org (maia-5.hub.org [200.46.204.29]) by mail.postgresql.org (Postfix) with ESMTP id 25980B5DC02 for ; Fri, 7 Oct 2011 04:29:41 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.29]) (amavisd-maia, port 10024) with ESMTP id 10033-08 for ; Fri, 7 Oct 2011 07:29:40 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by mail.postgresql.org (Postfix) with ESMTP id 57BA6B5DBE4 for ; Fri, 7 Oct 2011 04:29:40 -0300 (ADT) Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id p977TdO2075505 for ; Fri, 7 Oct 2011 07:29:39 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id p977Tdcx075504; Fri, 7 Oct 2011 07:29:39 GMT (envelope-from www) Date: Fri, 7 Oct 2011 07:29:39 GMT Message-Id: <201110070729.p977Tdcx075504@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6242: ERROR: unexpected CASE WHEN clause: 333 From: "Sergey" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201110/57 X-Sequence-Number: 31327 The following bug has been logged online: Bug reference: 6242 Logged by: Sergey Email address: sergey-1987@yandex.ru PostgreSQL version: 8.4.4 Operating system: FreeBSD 8.1-RELEASE Description: ERROR: unexpected CASE WHEN clause: 333 Details: create view test_view as select case n when null then 1 when 1 then 2 when 2 then 3 end from ( values (null), (1), (2) ) as t(n) pg_dump then fail with error: "ERROR: unexpected CASE WHEN clause: 333" but select * from test_view does not. This error occurs with the configuration "transform_null_equals".