Postgres array cast

Поиск
Список
Период
Сортировка
От jco@cornelius-olsen.dk
Тема Postgres array cast
Дата
Msg-id OF00313A3D.C9629102-ONC1256C9C.00032AE6@dk
обсуждение исходный текст
Список pgsql-general
Hi,

I'm using Zeos Database Objects to access the database. As it turns out,
it is not able to read array fields from the database.
I was wondering whether there is any way to convert an array to another
type (e.g. text).

I've tried using
        select my_array_field::text
and
        select text(my_array_field)

But it can't do that. Does anyone know of another compatible type or
whether it is possible to write a type casting operator?

 select version();
                           version
-------------------------------------------------------------
 PostgreSQL 7.2.1 on i686-pc-linux-gnu, compiled by GCC 2.96
(1 row)

Regards
/Jørn Cornelius Olsen

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: RI Constraint display
Следующее
От: jco@cornelius-olsen.dk
Дата:
Сообщение: Re: Postgres array cast