BUG #6242: ERROR: unexpected CASE WHEN clause: 333

From: "Sergey" <sergey-1987(at)yandex(dot)ru>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #6242: ERROR: unexpected CASE WHEN clause: 333
Date: 2011-10-07 07:29:39
Message-ID: 201110070729.p977Tdcx075504@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 6242
Logged by: Sergey
Email address: sergey-1987(at)yandex(dot)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".

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Heikki Linnakangas 2011-10-07 08:26:43 Re: BUG #6242: ERROR: unexpected CASE WHEN clause: 333
Previous Message Kyotaro HORIGUCHI 2011-10-07 04:22:46 Re: [v9.2] make_greater_string() does not return a string in some cases