BUG #4956: Array Construct array() returning blank result

Поиск
Список
Период
Сортировка
От Niranjan Pandit
Тема BUG #4956: Array Construct array() returning blank result
Дата
Msg-id 200907310302.n6V32vP8034510@wwwmaster.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #4956: Array Construct array() returning blank result  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      4956
Logged by:          Niranjan Pandit
Email address:      niranjan81@gmail.com
PostgreSQL version: 8.4
Operating system:   Windows Vista Ultimate
Description:        Array Construct array() returning blank result
Details:

Hi,
I simply wanted to accumulate result of a subquery in to an array, so I did
select array(select userid from user where <some condition>);

Only when the condition gets evaluated to true with at least 2 columns with
varying values the array gets constructed, in all other cases what we get is
a complete blank output. the label of the result is as usual as ?column? but
there is absolutely nothing in the cell below the label.

I am sorry if I am repeating something already known to mankind :-) but
after a lot search I could not get anything on it on the net.

Thanks in advance.

Best Wishes.

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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Fwd: BUG #4953: Crash with xml functions
Следующее
От: "Maxim.Boguk"
Дата:
Сообщение: BUG #4957: search_path and pg_dump -T switch