Re: [PORTS] Port Bug Report: select of array columns

Поиск
Список
Период
Сортировка
Искать
От
Thomas G. Lockhart
Тема
Re: [PORTS] Port Bug Report: select of array columns
Дата
Msg-id
36C2EE1C.4D5ED664@alumni.caltech.edu
Список
Дерево обсуждения
Re: [PORTS] Port Bug Report: select of array columns "Thomas G. Lockhart" <lockhart@alumni.caltech.edu>
> michael=> select * from test where 1 = test.fil_arr[1];
> art_id|fil_arr
> ------+---------
>      1|{1,2,3,4}
> (1 row)      -- shouldn't the array - index start with 0?

The array index is one-based. This is a documented feature, and is
consistant with other index numbering (such as arguments to substring())
in SQL92.

> michael=> select fil_arr[1] from test;    -- should be possible, too
> ERROR:  type name lookup of fil_arr failed

On my list of things to look at, though I haven't yet done it so if
someone else wants to pick it up it's available. Reported earlier by
Oliver.

                      - Tom
В списке pgsql-ports по дате отправления
От: Unprivileged user
Дата:
От: Unprivileged user
Дата:
FAQ