| От | Tom Lane |
|---|---|
| Тема | Re: Arrays and backslashes |
| Дата | |
| Msg-id | 17476.1155996148@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Arrays and backslashes (Colin DuPlantis <colind@sun.com>) |
| Список | pgsql-general |
Colin DuPlantis <colind@sun.com> writes:
> I am having trouble inserting a value into the array column that
> contains a single '\' (no quotes) character. The following examples are
> my attempts to produce a value of 'x\y' (no quotes) in both the regular
> text and the text array columns in the test table:
> insert into test values ( 'x\\y', array['x\\y']);
> c1 | c2
> -----+----------
> x\y | {"x\\y"}
> (1 row)
The above is perfectly correct: the actual value in c2[1] is 'x\y'.
Read the docs about array I/O formatting:
http://www.postgresql.org/docs/8.1/static/arrays.html#AEN5716
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера