Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly

Поиск
Список
Период
Сортировка
От Stephen Frost
Тема Re: BUG #7808: unnest doesn't handle nulls in array of composite types correctly
Дата
Msg-id 20130114213007.GN16126@tamriel.snowman.net
обсуждение исходный текст
Ответ на BUG #7808: unnest doesn't handle nulls in array of composite types correctly  (joe@tanga.com)
Список pgsql-bugs
* joe@tanga.com (joe@tanga.com) wrote:
> My goal is to remove nulls from an array. The array could be an array of a
> composite type.

A much simpler case is:

=3D> create type xt as (a integer);
CREATE TYPE
=3D> select * from unnest(array[null::xt]);
ERROR:  function returning set of rows cannot return null value
=3D> select * from unnest(array[row(null)::xt]);
 a=20
---
 =20
(1 row)

    Thanks,

        Stephen

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

Предыдущее
От: joe@tanga.com
Дата:
Сообщение: BUG #7808: unnest doesn't handle nulls in array of composite types correctly
Следующее
От: John R Pierce
Дата:
Сообщение: Re: BUG #7806: installation failed for postgis on Windows