Re: bytea and character encoding when inserting escaped literals
В списке pgsql-general по дате отправления:
| От | Lee Feigenbaum |
|---|---|
| Тема | Re: bytea and character encoding when inserting escaped literals |
| Дата | |
| Msg-id | 481F2815.2050302@thefigtrees.net обсуждение исходный текст |
| Ответ на | Re: bytea and character encoding when inserting escaped literals (Asche <asche.public@mac.com>) |
| Ответы |
Re: bytea and character encoding when inserting escaped
literals
|
| Список | pgsql-general |
Asche wrote: > Hi Lee, > > On 05.05.2008, at 17:07, Lee Feigenbaum wrote: >> INSERT INTO myTable VALUES (..., E'\x15\x1C\x2F\x00\x02...', ...) ; > > try escaping the backslashes: > > INSERT INTO myTable VALUES (..., E'\\x15\\x1C\\x2F\\x00\\x02...', ...) ; Hi Jan, Thanks for the suggestion. I should have mentioned in my original message that as per your suggestion and the suggestion in the documentation, I have tried escaping the backslashes. When I do this, I get the error: ERROR: invalid input syntax for type bytea I tried also doing INSERT INTO myTable VALUES (..., E'\\x15\\x1C\\x2F\\x00\\x02...'::bytea, ...) ; but get the same errors. Lee
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера