BUG #11642: Aggregate Functions like min, max return one row in case of no rows in table

Поиск
Список
Период
Сортировка
От jai.soni@elbizsystems.com
Тема BUG #11642: Aggregate Functions like min, max return one row in case of no rows in table
Дата
Msg-id 20141011073109.7983.80503@wrigleys.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #11642: Aggregate Functions like min, max return one row in case of no rows in table
Список pgsql-bugs
The following bug has been logged on the website:

Bug reference:      11642
Logged by:          Jai Soni
Email address:      jai.soni@elbizsystems.com
PostgreSQL version: 9.3.0
Operating system:   Open Suse Linux 12.1
Description:

Aggregate Functions like min, max return one row in case of no rows in table
it should return 0 rows as it return while using normal field in select
query
below code will re-create the case

# create table dummy(fid integer);

# select * from dummy;
 fid
-----
(0 rows)

# select max(fid) from dummy;
 max
-----

(1 row)

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

Предыдущее
От: dj@pgxplorer.com
Дата:
Сообщение: BUG #11641: ./configure fails with mingw gcc 9.4beta3
Следующее
От: Marko Tiikkaja
Дата:
Сообщение: Re: BUG #11642: Aggregate Functions like min, max return one row in case of no rows in table