Re: ECPG and COPY and PQputCopyData - don't get errors

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: ECPG and COPY and PQputCopyData - don't get errors
Дата
Msg-id 19938.1140977545@sss.pgh.pa.us
обсуждение исходный текст
Ответ на ECPG and COPY and PQputCopyData - don't get errors  (Wes <wespvp@syntegra.com>)
Ответы Re: ECPG and COPY and PQputCopyData - don't get errors
Список pgsql-general
Wes <wespvp@syntegra.com> writes:
> I sent the column headers as the first line of the input.  While this I now
> know this is wrong, the problem here is that I got no error response back.
> ...
> However, every call to PQputCopyData, as well as PQputCopyEnd returned a
> result of 1.

That just indicates that the data was sent to the backend without error.
You forgot to check the copy command result afterward.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: gabor
Дата:
Сообщение: Re: From ASCII to UTF-8
Следующее
От: Tom Lane
Дата:
Сообщение: Re: How much clustered?