Re: Inserting string with a " into an array using {} syntax ... possible?

Поиск
Список
Период
Сортировка
От Bill Moran
Тема Re: Inserting string with a " into an array using {} syntax ... possible?
Дата
Msg-id 20090313102156.82c08d7f.wmoran@potentialtech.com
обсуждение исходный текст
Ответ на Re: Inserting string with a " into an array using {} syntax ... possible?  (Pavel Stehule <pavel.stehule@gmail.com>)
Список pgsql-general
In response to Pavel Stehule <pavel.stehule@gmail.com>:

> Hello
>
> try
> postgres=# SELECT ARRAY['text "for you" some'];
>            array
> ---------------------------
>  {"text \"for you\" some"}
> (1 row)

Thanks, and I'm aware of that, but it doesn't answer the original
question.  The code I'm writing is back-end code that other developers
will use to submit queries.

I don't have the luxury of changing their queries from {} syntax to
[] syntax at runtime.  However, if this is something that can't be
done with {}, I can catch it during data validation and throw a useful
error.

--
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/

В списке pgsql-general по дате отправления:

Предыдущее
От: emsa@devdep.com
Дата:
Сообщение: postmaster hangs on delete from
Следующее
От: Grzegorz Jaśkiewicz
Дата:
Сообщение: Re: Transactions in user defined function