case with distinct

Поиск
Список
Период
Сортировка
От Merrill Oveson
Тема case with distinct
Дата
Msg-id 3A3670C9.6E6C0E9F@actarg.com
обсуждение исходный текст
Ответы Re: case with distinct  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
This works:
    select
            orgid,
            case when status = 'y' then '1' else '0' end
            from vend


This doesn't:
     select distinct
            orgid,
            case when status = 'y' then '1' else '0' end
            from vend

The only difference is the absence of distinct clause.
bug?

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

Предыдущее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Solaris ODBC - linker flag needs to be set when building shared objects
Следующее
От: Tom Lane
Дата:
Сообщение: Re: constrains of array