Re: BUG #8226: Inconsistent unnesting of arrays

Поиск
Список
Период
Сортировка
От Greg Stark
Тема Re: BUG #8226: Inconsistent unnesting of arrays
Дата
Msg-id CAM-w4HNZ-6X9eAwtCY72Gff3ihOpUF-L2x2+3Wt7=+A7aaJ5+A@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #8226: Inconsistent unnesting of arrays  (ddebernardy@yahoo.com)
Ответы Re: BUG #8226: Inconsistent unnesting of arrays  (Denis de Bernardy <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 по дате отправления:

Предыдущее
От: ddebernardy@yahoo.com
Дата:
Сообщение: BUG #8226: Inconsistent unnesting of arrays
Следующее
От: Greg Stark
Дата:
Сообщение: Re: BUG #8226: Inconsistent unnesting of arrays