sum() bug?

Поиск
Список
Период
Сортировка
От Vincent Bodenstab
Тема sum() bug?
Дата
Msg-id 38C3E989.62927F08@quicknet.nl
обсуждение исходный текст
Список pgsql-general
Hi all,

I was just wondering: when I execute the following query:

select sum(foo) from bar where column1='value_which_does_not_exist';

postgres gives me a result which consists of one row. But it shouldn't
because
that value does not exist.

Does anyone know some sort of workaround for this? I need to use this
query in
a PHP script and this result in kind off annoying.

TIA

Vincent


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

Предыдущее
От: Chris Jones
Дата:
Сообщение: Re: [GENERAL] RE: Help with installing 6.5.3 on RedHat6.1 - specifying template
Следующее
От:
Дата:
Сообщение: Re: [GENERAL] Postgresql / Threads / Scalability