File tree 2 files changed +11
-3
lines changed 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)
15
15
Fix for backward ORDER BY(Vadim)
16
16
Fix avg(cash) computation(Thomas)
17
17
Fix for specifying a column twice in ORDER BY(Vadim)
18
+ Documented new libpq function to return affected rows, PQcmdTuples(Vadim)
18
19
19
20
20
21
PostgreSQL 6.2 Thu Oct 02 12:53:46 EDT 1997
Original file line number Diff line number Diff line change 1
1
.\" This is -*-nroff-*-
2
2
.\" 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 $
4
4
.TH LIBPQ INTRO 03/12/94 PostgreSQL PostgreSQL
5
5
.SH DESCRIPTION
6
6
Libpq 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.
201
201
.IP
202
202
203
203
.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.
206
205
207
206
.nf
208
207
int PQntuples(PGresult *res);
209
208
.fi
210
209
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
+
211
218
.B PQnfields
212
219
returns the number of fields (attributes) in the query result.
213
220
.nf
You can’t perform that action at this time.
0 commit comments