Search Postgresql Archives

case not sensitive to null condition ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 !

 


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux