PQescapeByteaConn - returns wrong string for PG9.1 Beta3
В списке pgsql-hackers по дате отправления:
| От | Petro Meier |
|---|---|
| Тема | PQescapeByteaConn - returns wrong string for PG9.1 Beta3 |
| Дата | |
| Msg-id | 20110727065122.205180@gmx.net обсуждение |
| Ответы |
Re: PQescapeByteaConn - returns wrong string for PG9.1 Beta3
Re: PQescapeByteaConn - returns wrong string for PG9.1 Beta3 |
| Список | pgsql-hackers |
If I use PQescapeByteaConn() for a conenction to a PG9.1 Beta3 server, this function returns (e.g.) "\xea2abd8ef31...(and so on.)...".
Here the problem: there should be a second backslash in the prefix. The SQL Statement which uses this string (INSERT statement in my case) returns with an error ("Invalid byte sequence..."). If I add the second backslash manually everything works fine.
When connecting to a PG9.0 server and using this function, the return value is correct (with two backslashes): "\\xea2abd8ef31...( and so on.)...".
This should be a bug in PG9.1 Beta3
Regards
Petro
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера