Re: New COPY commands in libpq

Поиск
Список
Период
Сортировка
От 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 по дате отправления:

Предыдущее
От: Kaare Rasmussen
Дата:
Сообщение: Re: Plan for feature freeze?
Следующее
От: Fabien COELHO
Дата:
Сообщение: Re: pg ANY/SOME ambiguity wrt sql standard?