"...integer[] references..." = error

Поиск
Список
Период
Сортировка
От Joel Rodrigues
Тема "...integer[] references..." = error
Дата
Msg-id 0F5EB467-C0EF-11D6-80E7-0005024EF27F@Phreaker.net
обсуждение исходный текст
Ответы Re: "...integer[] references..." = error
Re: "...integer[] references..." = error
Список pgsql-general
Hello,

Does anyone know why trying to create this column:

"role    INTEGER[] REFERENCES role (roleid)"


returns this error:


ERROR:  Unable to identify an operator '=' for types 'integer[]'
and 'integer'
         You will have to retype this query using an explicit cast

psql:individual.sql:22: ERROR:  Unable to identify an
operator '=' for types 'integer[]' and 'integer'
         You will have to retype this query using an explicit cast


If I remove the array "[]", it works fine, but I need the array
to refer to more than one "roleid".

TIA.

- Joel



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