From 523adeb1119bbc68e056c4e3a2aa2a62dcf26e9e Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Fri, 3 Mar 2006 20:57:32 +0000 Subject: Teach PQcmdTuples() that a COPY command tag might contain a row count, and tighten up its sanity checking of the tag as a safety measure. Volkan Yazici. --- doc/src/sgml/libpq.sgml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 9c48948c868..ccec9c72b87 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -1,5 +1,5 @@ @@ -2127,12 +2127,13 @@ char *PQcmdTuples(PGresult *res); affected by the SQL statement that generated the PGresult. This function can only be used following the execution of an INSERT, - UPDATE, DELETE, MOVE, or - FETCH statement, or an EXECUTE of a - prepared query that contains a INSERT, + UPDATE, DELETE, MOVE, + FETCH, or COPY statement, + or an EXECUTE of a + prepared query that contains an INSERT, UPDATE, or DELETE statement. If the command that generated the PGresult was - anything else, PQcmdTuples returns the empty + anything else, PQcmdTuples returns an empty string. The caller should not free the return value directly. It will be freed when the associated PGresult handle is passed to -- cgit v1.2.3