Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b268758

Browse files
committed
New function PQcmdTuples.
1 parent ed966c4 commit b268758

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

HISTORY

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Allow strings to span lines, like ANSI(Thomas)
1515
Fix for backward ORDER BY(Vadim)
1616
Fix avg(cash) computation(Thomas)
1717
Fix for specifying a column twice in ORDER BY(Vadim)
18+
Documented new libpq function to return affected rows, PQcmdTuples(Vadim)
1819

1920

2021
PostgreSQL 6.2 Thu Oct 02 12:53:46 EDT 1997

src/man/libpq.3

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
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
66
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.
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
208207
int 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
212219
returns the number of fields (attributes) in the query result.
213220
.nf

0 commit comments

Comments
 (0)