Re: BUG #2913: Subscript on multidimensional array yields no value

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #2913: Subscript on multidimensional array yields no value
Дата
Msg-id 200701302250.l0UMoQo00894@momjian.us
обсуждение исходный текст
Ответ на BUG #2913: Subscript on multidimensional array yields no value  ("Roman Nowak" <roman_nowak@poczta.onet.pl>)
Ответы Re: BUG #2913: Subscript on multidimensional array yields no value  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
I can confirm this is a bug.  Added to the TODO list:

        o ARRAY[[1,2],[3,4]])[1] should return the same values as
          ARRAY[[1,2],[3,4]])[1:1];


---------------------------------------------------------------------------

Roman Nowak wrote:
>
> The following bug has been logged online:
>
> Bug reference:      2913
> Logged by:          Roman Nowak
> Email address:      roman_nowak@poczta.onet.pl
> PostgreSQL version: 8.2.1
> Operating system:   Windows XP
> Description:        Subscript on multidimensional array yields no value
> Details:
>
> SELECT (ARRAY[[1,2],[3,4]])[1];
>
> does not return [1,2]
> (testes in psql and pgAdmin III): show info that one row was returned but
> does not display its value
>
> following statment works OK btw
> SELECT (ARRAY[[1,2],[3,4]])[1:1];
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly

--
  Bruce Momjian   bruce@momjian.us
  EnterpriseDB    http://www.enterprisedb.com

  + If your life is a hard drive, Christ can be your backup. +

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2945: possibly forgotten SPI_push()/SPI_pop()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2913: Subscript on multidimensional array yields no value