case not sensitive to null condition ?

Поиск
Список
Период
Сортировка
От Gauthier, Dave
Тема case not sensitive to null condition ?
Дата
Msg-id 0AD01C53605506449BA127FB8B99E5E1624A1845@FMSMSX114.amr.corp.intel.com
обсуждение исходный текст
Ответы Re: case not sensitive to null condition ?
Список 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 !

 

В списке pgsql-general по дате отправления:

Предыдущее
От: Igor Neyman
Дата:
Сообщение: Re: Windows query weird result
Следующее
От: Lutz Fischer
Дата:
Сообщение: Re: Windows query weird result