case with distinct

Поиск
Список
Период
Сортировка
От Merrill Oveson
Тема case with distinct
Дата
Msg-id 3A3670C9.6E6C0E9F@actarg.com
обсуждение исходный текст
Ответы Re: case with distinct
Список 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 по дате отправления: