Re: ECPG and COPY and PQputCopyData - don't get errors - Mailing list pgsql-general

From Tom Lane
Subject Re: ECPG and COPY and PQputCopyData - don't get errors
Date
Msg-id 19938.1140977545@sss.pgh.pa.us
Whole thread Raw
In response to ECPG and COPY and PQputCopyData - don't get errors  (Wes <wespvp@syntegra.com>)
Responses Re: ECPG and COPY and PQputCopyData - don't get errors  (Wes <wespvp@syntegra.com>)
List 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 by date:

Previous
From: gabor
Date:
Subject: Re: From ASCII to UTF-8
Next
From: Tom Lane
Date:
Subject: Re: How much clustered?