Re: problem with PQsendQuery/PQgetResult and COPY FROM statement - Mailing list pgsql-hackers

From Volkan YAZICI
Subject Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Date
Msg-id 20060521214743.GB317@alamut
Whole thread Raw
In response to problem with PQsendQuery/PQgetResult and COPY FROM statement  (max.poletto@gmail.com)
List pgsql-hackers
On May 19 11:51, max.poletto@gmail.com wrote:
>   if (PQsendQuery(conn, "COPY test FROM STDIN") > 0) {
>     retrieve(conn, 20);

Shouldn't you be send()'ing instead of retrieve()'ing? COPY tbl FROM
stdin, requests data from client to COPY FROM stdin TO tbl.


Regards.


pgsql-hackers by date:

Previous
From: Jeff Frost
Date:
Subject: Re: [ADMIN] does wal archiving block the current client connection?
Next
From: Josh Berkus
Date:
Subject: Re: Porting MSSQL to PGSQL (Was: [OT] MySQL is bad, but THIS bad?)