Fix comment of PQputCopyEnd()
authorMichael Paquier <michael@paquier.xyz>
Tue, 29 Aug 2023 23:29:08 +0000 (08:29 +0900)
committerMichael Paquier <michael@paquier.xyz>
Tue, 29 Aug 2023 23:29:08 +0000 (08:29 +0900)
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

src/interfaces/libpq/fe-exec.c

index 974d462d4b870b043b4f4af599e75686a013cca7..c6d80ec3968b2720c5547f39d754dfbc3383d8e6 100644 (file)
@@ -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)