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

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: BUG #2913: Subscript on multidimensional array yields no value
Дата
Msg-id 200701310200.l0V20Sd08345@momjian.us
обсуждение исходный текст
Ответ на Re: BUG #2913: Subscript on multidimensional array yields no value  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: BUG #2913: Subscript on multidimensional array yields no value  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Tom Lane wrote:
> Bruce Momjian <bruce@momjian.us> writes:
> > 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];
>
> This is not a bug, this is a definitional disagreement, and your TODO
> entry presupposes an answer that I don't particularly agree with.

Well, our documentation suggests thaat [1] is the same as [1:1]:

    http://www.postgresql.org/docs/8.2/static/arrays.html#AEN5791

What is the issue here that makes that not true?

--
  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 #2913: Subscript on multidimensional array yields no value
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2913: Subscript on multidimensional array yields no value