Re: New COPY commands in libpq

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: reina_ga(at)hotmail(dot)com (Tony Reina)
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: New COPY commands in libpq
Date: 2004-04-30 16:30:59
Message-ID: 26303.1083342659@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

reina_ga(at)hotmail(dot)com (Tony Reina) writes:
> * PQputCopyData(conn, cmd, sizeof(cmd));

I'm a bit rusty on C++ string mashing, but surely sizeof() is not the
correct way to determine the number of bytes presently stored in a
variable-length string?

> * PQputCopyEnd(conn, msg);

You want to pass NULL for the second argument.

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2004-04-30 16:36:08 Re: What can we learn from MySQL?
Previous Message Andrew Payne 2004-04-30 16:22:11 Re: What can we learn from MySQL?