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

Поиск
Список
Период
Сортировка
От Joel Rodrigues
Тема "...integer[] references..." = error
Дата
Msg-id 0F5EB467-C0EF-11D6-80E7-0005024EF27F@Phreaker.net
обсуждение исходный текст
Ответы Re: "...integer[] references..." = error  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Re: "...integer[] references..." = error  ("Nigel J. Andrews" <nandrews@investsystems.co.uk>)
Список 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 по дате отправления:

Предыдущее
От: "Markus Wollny"
Дата:
Сообщение: Re: Problem with restoring dump (may be tsearch-related)
Следующее
От: "scott.marlowe"
Дата:
Сообщение: Re: uninstall postgresql