Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb268758

Browse files
committed
New function PQcmdTuples.
1 parented966c4 commitb268758

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
.BPQntuples
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+
.BPQcmdTuples
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
.BPQnfields
212219
returns the number of fields (attributes) in the query result.
213220
.nf

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp