case not sensitive to null condition ?

From: "Gauthier, Dave" <dave(dot)gauthier(at)intel(dot)com>
To: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: case not sensitive to null condition ?
Date: 2013-04-30 14:17:40
Message-ID: 0AD01C53605506449BA127FB8B99E5E1624A1845@FMSMSX114.amr.corp.intel.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

v9.0.1 on linux

thedb=# select
''''||bicolumn||'''',
coalesce(permitted_values,'is_null'),
case permitted_values when NULL then 'null' else ''''||permitted_values||'''' end
from bi_constraints limit 2;

?column? | coalesce | case
----------------+---------------+-----------------
'block' | is_null | <--- should be 'null' ??
'design_style' | rls,analog,fc | 'rls,analog,fc'
(2 rows)

Why didn't the case return 'null' in the statement above?

Thanks in Advance !

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Lutz Fischer 2013-04-30 14:20:53 Re: Windows query weird result
Previous Message Igor Neyman 2013-04-30 13:49:01 Re: Windows query weird result