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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wes <wespvp(at)syntegra(dot)com>
Cc: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, Michael Meskes <meskes(at)postgresql(dot)org>, pgsql-general(at)postgresql(dot)org
Subject: Re: ECPG and COPY and PQputCopyData - don't get errors
Date: 2006-02-26 18:12:25
Message-ID: 19938.1140977545@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wes <wespvp(at)syntegra(dot)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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2006-02-26 18:21:18 Re: How much clustered?
Previous Message Tino Wildenhain 2006-02-26 17:53:49 Re: Management of Concurrent Clients