Re: Subselects returning array and ANY... - Mailing list pgsql-sql

From Josh Berkus
Subject Re: Subselects returning array and ANY...
Date
Msg-id 200802271611.50928.josh@agliodbs.com
Whole thread Raw
In response to Subselects returning array and ANY...  ("Dawid Kuroczko" <qnex42@gmail.com>)
Responses Re: Subselects returning array and ANY...
List pgsql-sql
Dawid,

>    SELECT * FROM foo WHERE t = ANY (SELECT '{x4,5,zzz}'::text[]);
> ERROR:  operator does not exist: text = text[]
> HINT:  No operator matches the given name and argument type(s). You
> might need to add explicit type casts.

Drop the second SELECT, I think.

postgres=# select 'x' = ANY ( '{x,y,z}'::TEXT[] );?column?
----------t


-- 
--Josh

Josh Berkus
PostgreSQL @ Sun
San Francisco


pgsql-sql by date:

Previous
From: "Dawid Kuroczko"
Date:
Subject: Subselects returning array and ANY...
Next
From: "Dawid Kuroczko"
Date:
Subject: Re: Subselects returning array and ANY...