Skip site navigation (1) Skip section navigation (2)

ERROR: operator does not exist: integer = integer[]

From: cesar_cast <cesar(dot)cast(dot)more(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: ERROR: operator does not exist: integer = integer[]
Date: 2012-04-11 21:17:48
Message-ID: 1334179068706-5634075.post@n5.nabble.com (view raw or flat)
Thread:
Lists: pgsql-bugs
I have the following

select *
from   employee AS e
where  (e.id) IN  (ARRAY[3,1]);

I have the following mistake
ERROR:  operator does not exist: integer = integer[]
LINE 3: where  (e.id) IN  (ARRAY[3,1]);
                      ^
HINT:  No operator matches the given name and argument type(s). You might
need to add explicit type casts.

********** Error **********

ERROR: operator does not exist: integer = integer[]
SQL state: 42883
Hint: No operator matches the given name and argument type(s). You might
need to add explicit type casts.
Character: 45


Can anybody explain me? 

--
View this message in context: http://postgresql.1045698.n5.nabble.com/ERROR-operator-does-not-exist-integer-integer-tp5634075p5634075.html
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.

Responses

pgsql-bugs by date

Next:From: Ashesh VashiDate: 2012-04-12 05:13:02
Subject: Re: ERROR: operator does not exist: integer = integer[]
Previous:From: Keith FiskeDate: 2012-04-11 18:29:28
Subject: Re: BUG #6581: pg_dumpall --no-tablespaces option still sets default tablespace

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group