| От | Tom Lane |
|---|---|
| Тема | Re: how to preserve \n in select statement |
| Дата | |
| Msg-id | 14347.1071895547@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: how to preserve \n in select statement ("Matt Van Mater" <nutter_@hotmail.com>) |
| Список | pgsql-sql |
"Matt Van Mater" <nutter_@hotmail.com> writes:
> I just don't see why pgsql can't return my data exactly as I entered
> it.
Because you are using an input syntax that requires that quotes and
backslashes be escaped. There are other input methods available that
don't require this, but they have disadvantages of their own. In
particular, you have to separate data from SQL command if you want a
no-escape-processing behavior for data.
> I think this behavior stems from a security problem psql had a while
> back where escape characters were being interpreted, and this may be
> another instance of that functionality.
Matt, you have no idea what you are talking about.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера