Re: problem with PQsendQuery/PQgetResult and COPY FROM statement

From: Volkan YAZICI <yazicivo(at)ttnet(dot)net(dot)tr>
To: max(dot)poletto(at)gmail(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: problem with PQsendQuery/PQgetResult and COPY FROM statement
Date: 2006-05-21 21:47:44
Message-ID: 20060521214743.GB317@alamut
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On May 19 11:51, max(dot)poletto(at)gmail(dot)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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Josh Berkus 2006-05-21 21:58:17 Re: Porting MSSQL to PGSQL (Was: [OT] MySQL is bad, but THIS bad?)
Previous Message Jeff Frost 2006-05-21 21:39:06 Re: does wal archiving block the current client connection?