Skip to content

Commit 1b57b8b

Browse files
committed
Document that libpq's PQntuples() might overflow.
1 parent 6f21c57 commit 1b57b8b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/src/sgml/libpq.sgml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.245 2007/09/14 14:54:25 momjian Exp $ -->
1+
<!-- $PostgreSQL: pgsql/doc/src/sgml/libpq.sgml,v 1.246 2007/09/26 08:45:50 momjian Exp $ -->
22

33
<chapter id="libpq">
44
<title><application>libpq</application> - C Library</title>
@@ -2092,7 +2092,9 @@ PGresult *PQdescribePortal(PGconn *conn, const char *portalName);
20922092

20932093
<listitem>
20942094
<para>
2095-
Returns the number of rows (tuples) in the query result.
2095+
Returns the number of rows (tuples) in the query result. Because
2096+
it returns an integer result, large result sets might overflow the
2097+
return value on 32-bit operating systems.
20962098

20972099
<synopsis>
20982100
int PQntuples(const PGresult *res);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy