Re: string = any()
От | Andy Colson |
---|---|
Тема | Re: string = any() |
Дата | |
Msg-id | 4F0C64D3.7000709@squeakycode.net обсуждение исходный текст |
Ответ на | Re: string = any() (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: string = any()
Re: string = any() |
Список | pgsql-general |
On 1/10/2012 10:11 AM, Tom Lane wrote: > 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 Wahoo! Yep, that was it. My confusion was from: clayia=# select '{''joe'', ''bob'' }'; ?column? ----------------- {'joe', 'bob' } (1 row) It does return an array of string, or so it looks. Thank you Tom. -Andy
В списке pgsql-general по дате отправления: