Re: Are arrays broken in 7.0.3?

Поиск
Список
Период
Сортировка
От Jason Aten
Тема Re: Are arrays broken in 7.0.3?
Дата
Msg-id Pine.SOL.4.10.10012181412031.27164-100000@panther.cs.ucla.edu
обсуждение исходный текст
Ответ на Re: Are arrays broken in 7.0.3?  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Are arrays broken in 7.0.3?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Tom:

Ah-hah! thanks!

Is there some way to find the dimensions of an array once it
has been inserted into a table? (or to just ask for it all, like saying
[:] in matlab? )

-Jason

On Mon, 18 Dec 2000, Tom Lane wrote:

> Jason Aten <jaten@CS.UCLA.EDU> writes:
> > testdb=# select f[2][1:5] from arr; (ask row back, get two!)
>
> This is implicitly an array slice operation, so it's the same as
> select f[1:2][1:5] from arr;
> If you want just the one row you need to write
> select f[2:2][1:5] from arr;
>
> The behavior of the cases with too few subscripts does seem pretty
> unhelpful --- seems like either raising an error or returning a
> slice would make more sense than returning NULL.  But that's how
> the code is set up at the moment.
>
>             regards, tom lane
>


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Are arrays broken in 7.0.3?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Are arrays broken in 7.0.3?