summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-exec.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2023-08-30 08:29:08 +0900
committerMichael Paquier <michael@paquier.xyz>2023-08-30 08:29:08 +0900
commit8bf7db0285dfbc4b505c8be4c34ab7386eb6297f (patch)
tree5555221df80bc61537f9e555017775350fe5189f /src/interfaces/libpq/fe-exec.c
parent52c6c0f19693367d542d1286c978a713ffcedd3a (diff)
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
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r--src/interfaces/libpq/fe-exec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 974d462d4b8..c6d80ec3968 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -2709,8 +2709,7 @@ PQputCopyData(PGconn *conn, const char *buffer, int nbytes)
*
* After calling this, use PQgetResult() to check command completion status.
*
- * Returns 1 if successful, 0 if data could not be sent (only possible
- * in nonblock mode), or -1 if an error occurs.
+ * Returns 1 if successful, or -1 if an error occurs.
*/
int
PQputCopyEnd(PGconn *conn, const char *errormsg)