Re: PQescapeByteaConn - returns wrong string for PG9.1 Beta3
В списке pgsql-hackers по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: PQescapeByteaConn - returns wrong string for PG9.1 Beta3 |
| Дата | |
| Msg-id | 14970.1312491254@sss.pgh.pa.us обсуждение |
| Ответ на | PQescapeByteaConn - returns wrong string for PG9.1 Beta3 ("Petro Meier" <Petro85@gmx.de>) |
| Ответы |
Re: PQescapeByteaConn - returns wrong string for PG9.1 Beta3
|
| Список | pgsql-hackers |
"Petro Meier" <Petro85@gmx.de> writes:
> INSERT INTO "testtable" ("ID", "BinaryContents") values (1,
> E'\xea2abd8ef3');
> returns "invalid byte sequence".
> '\xea2abd8ef3' is the string delivered by the PG 9.1 Beta3 server
> when calling PQescapeByteaConn(). It cannot be further processed by the
> server itself afterwards! There is a leading '\' missing.
No, there isn't. What you are doing wrong is prepending an E to the
literal. You should not be doing that, neither in 9.1 nor any previous
version.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера