pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedERROR: operator does not exist: integer = integer[]
2+ messages / 2 participants
[nested] [flat]
* ERROR: operator does not exist: integer = integer[]
@ 2012-04-11 21:17 cesar_cast <cesar.cast.more@gmail.com>
2012-04-12 05:13 ` Re: ERROR: operator does not exist: integer = integer[] Ashesh Vashi <ashesh.vashi@enterprisedb.com>
0 siblings, 1 reply; 2+ messages in thread
From: cesar_cast @ 2012-04-11 21:17 UTC (permalink / raw)
To: 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-tp5634075p5634...
Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ERROR: operator does not exist: integer = integer[]
2012-04-11 21:17 ERROR: operator does not exist: integer = integer[] cesar_cast <cesar.cast.more@gmail.com>
@ 2012-04-12 05:13 ` Ashesh Vashi <ashesh.vashi@enterprisedb.com>
0 siblings, 0 replies; 2+ messages in thread
From: Ashesh Vashi @ 2012-04-12 05:13 UTC (permalink / raw)
To: cesar_cast <cesar.cast.more@gmail.com>; +Cc: pgsql-bugs
On Thu, Apr 12, 2012 at 2:47 AM, cesar_cast <cesar.cast.more@gmail.com>wrote:
> I have the following
>
> select *
> from employee AS e
> where (e.id) IN (ARRAY[3,1]);
>
Use:
SELECT * FROM employee AS e WHERE e.id = ANY(ARRAY[3,1]);
--
Thanks & Regards,
Ashesh Vashi
EnterpriseDB INDIA: Enterprise PostgreSQL Company<http://www.enterprisedb.com/;
*http://www.linkedin.com/in/asheshvashi*
>
> 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-tp5634075p5634...
> Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2012-04-12 05:13 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2012-04-11 21:17 ERROR: operator does not exist: integer = integer[] cesar_cast <cesar.cast.more@gmail.com>
2012-04-12 05:13 ` Re: ERROR: operator does not exist: integer = integer[] Ashesh Vashi <ashesh.vashi@enterprisedb.com>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox