File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Allow strings to span lines, like ANSI(Thomas)
1515Fix for backward ORDER BY(Vadim)
1616Fix avg(cash) computation(Thomas)
1717Fix for specifying a column twice in ORDER BY(Vadim)
18+ Documented new libpq function to return affected rows, PQcmdTuples(Vadim)
1819
1920
2021PostgreSQL 6.2 Thu Oct 02 12:53:46 EDT 1997
Original file line number Diff line number Diff line change 11.\" This is -*-nroff-*-
22.\" XXX standard disclaimer belongs here....
3- .\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.6 1997/10/16 04:14:19 momjian Exp $
3+ .\" $Header: /cvsroot/pgsql/src/man/Attic/libpq.3,v 1.7 1997/10/17 02:11:49 momjian Exp $
44.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
55.SH DESCRIPTION
66Libpq is the programmer's interface to Postgres. Libpq is a set of
@@ -201,13 +201,20 @@ be used to retrieve the tuples returned by the query.
201201.IP
202202
203203.B PQntuples
204- returns the number of tuples (instances) in the query result, or the
205- number of rows affected for queries that do not return any tuples.
204+ returns the number of tuples (instances) in the query result.
206205
207206.nf
208207int PQntuples(PGresult *res);
209208.fi
210209
210+ .B PQcmdTuples
211+ returns the number of tuples (instances) affected by INSERT, UPDATE, and
212+ DELETE queries.
213+
214+ .nf
215+ char *PQcmdTuples(PGresult *res);
216+ .fi
217+
211218.B PQnfields
212219returns the number of fields (attributes) in the query result.
213220.nf
You can’t perform that action at this time.
0 commit comments