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

From: Ashesh Vashi <ashesh(dot)vashi(at)enterprisedb(dot)com>
To: cesar_cast <cesar(dot)cast(dot)more(at)gmail(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: ERROR: operator does not exist: integer = integer[]
Date: 2012-04-12 05:13:02
Message-ID: CAG7mmoxZdRdatjWSYLBCVGJ4CPMa38ARSZByWe9xrWHKP0mB1g@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Thu, Apr 12, 2012 at 2:47 AM, cesar_cast <cesar(dot)cast(dot)more(at)gmail(dot)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-tp5634075p5634075.html
> Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Amit Kapila 2012-04-12 06:23:54 Re: BUG #6534: Passing numeric Bind variables to ODBC driver convers to "Double precision"
Previous Message cesar_cast 2012-04-11 21:17:48 ERROR: operator does not exist: integer = integer[]