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

From: Joel Rodrigues <borgempath(at)Phreaker(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: "...integer[] references..." = error
Date: 2002-09-05 16:46:44
Message-ID: 0F5EB467-C0EF-11D6-80E7-0005024EF27F@Phreaker.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-general by date

  From Date Subject
Next Message scott.marlowe 2002-09-05 16:51:59 Re: uninstall postgresql
Previous Message Markus Wollny 2002-09-05 16:45:19 Re: Problem with restoring dump (may be tsearch-related)