Re: string = any() - Mailing list pgsql-general

From Tom Lane
Subject Re: string = any()
Date
Msg-id 24259.1326211915@sss.pgh.pa.us
Whole thread Raw
In response to Re: string = any()  (Andy Colson <andy@squeakycode.net>)
Responses Re: string = any()  (Andy Colson <andy@squeakycode.net>)
List pgsql-general
Andy Colson <andy@squeakycode.net> writes:
> This still does not work, even in psql:
> select 'bob' = any( '{''joe'', ''bob'' }'::varchar[] )

You've got the array quoting rules wrong here (should be double quote
marks, not single quotes).  You didn't show us your PHP code but I
surmise that's got the same mistake.  Read the array I/O representation
spec carefully:
http://www.postgresql.org/docs/9.1/static/arrays.html#ARRAYS-IO

            regards, tom lane

pgsql-general by date:

Previous
From: "David Johnston"
Date:
Subject: Re: string = any()
Next
From: Andy Colson
Date:
Subject: Re: string = any()