| От | reina_ga@hotmail.com (Tony Reina) |
|---|---|
| Тема | Re: New COPY commands in libpq |
| Дата | |
| Msg-id | 272e4be7.0405010050.608912dd@posting.google.com обсуждение исходный текст |
| Ответ на | New COPY commands in libpq (reina_ga@hotmail.com (Tony Reina)) |
| Список | pgsql-hackers |
> I'm a bit rusty on C++ string mashing, but surely sizeof() is not the > correct way to determine the number of bytes presently stored in a > variable-length string? > > > * PQputCopyEnd(conn, msg); Yes, I've had several people mention this and that did the trick. Thanks to all that replied. Looks like a simple strlen() works fine, but I'll have to look into the UNICODE concerns that some people had about Windows and MFC. As I was looking into finding some sample code, I found that /src/bin/psql/copy.c uses the older, deprecated commands of PQputline and PQendcopy. -Tony
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера