Re: BUG #8226: Inconsistent unnesting of arrays

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: BUG #8226: Inconsistent unnesting of arrays
Дата
Msg-id CAM-w4HMyYbOLAZE74WNOxd_RhFoLFa6Vsx4Z-6AZ_fx1yhQdug@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #8226: Inconsistent unnesting of arrays  (ddebernardy@yahoo.com)
Список pgsql-bugs
On Wed, Jun 12, 2013 at 9:58 AM,  <ddebernardy@yahoo.com> wrote:
> denis=# select 1 as a, unnest('{2,3}'::int[]) as b, unnest('{4,5}'::int[])

set returning functions in the target list of the select don't behave
the way you're thinking. What you probably want to do is move the
unnest() to the FROM clause:

select 1 as a, b, c from unnest('{2,3}'::int[]) as b(b),
unnest('{4,5}'::int[]) as c(c)


--
greg

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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: BUG #8226: Inconsistent unnesting of arrays
Следующее
От: Denis de Bernardy
Дата:
Сообщение: Re: BUG #8226: Inconsistent unnesting of arrays