Skip to content

Commit 8bf7db0

Browse files
committed
Fix comment of PQputCopyEnd()
The comment describing the error codes of this routine mentioned 0 as a possible value, but this error code has never been used. Author: Junwang Zhao Reviewed-by: Aleksander Alekseev Discussion: https://postgr.es/m/CAEG8a3Jt5KwMNr+_S6VN68rog4HeoG6ELvPQO8kZNQTeJeQ=rQ@mail.gmail.com
1 parent 52c6c0f commit 8bf7db0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/interfaces/libpq/fe-exec.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2709,8 +2709,7 @@ PQputCopyData(PGconn *conn, const char *buffer, int nbytes)
27092709
*
27102710
* After calling this, use PQgetResult() to check command completion status.
27112711
*
2712-
* Returns 1 if successful, 0 if data could not be sent (only possible
2713-
* in nonblock mode), or -1 if an error occurs.
2712+
* Returns 1 if successful, or -1 if an error occurs.
27142713
*/
27152714
int
27162715
PQputCopyEnd(PGconn *conn, const char *errormsg)

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