'a' = any( $${'a','x'} )

Started by Jasen Bettsover 16 years ago3 messagesgeneral
Jump to latest
#1Jasen Betts
jasen@xnet.co.nz

jasen=# select 'a' = any( $${'a','x'}$$ ) ;
?column?
----------
f
(1 row)

I expect it to be true instead. what am I doing wrong?

PostgreSQL 8.3.7 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Debian 4.3.2-1.1) 4.3.2

jasen.

In reply to: Jasen Betts (#1)
Re: 'a' = any( $${'a','x'} )

Try

select 'a' = any( $${a,x}$$ ) ;

or

select 'a' = any( array['a','x'] ) ;

On Sat, Aug 8, 2009 at 3:08 PM, Jasen Betts <jasen@xnet.co.nz> wrote:

Show quoted text

jasen=# select 'a' = any( $${'a','x'}$$ ) ;
?column?
----------
f
(1 row)

I expect it to be true instead. what am I doing wrong?

PostgreSQL 8.3.7 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Debian
4.3.2-1.1) 4.3.2

jasen.

--
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

#3Bruce Momjian
bruce@momjian.us
In reply to: Jasen Betts (#1)
Re: 'a' = any( $${'a','x'} )

On Sat, Aug 8, 2009 at 12:08 PM, Jasen Betts<jasen@xnet.co.nz> wrote:

select 'a' = any( $${'a','x'}$$ ) ;

postgres=# select 'a' = any( $${"a","x"}$$ ) ;
?column?
----------
t
(1 row)

--
greg
http://mit.edu/~gsstark/resume.pdf