1
0
mirror of https://github.com/postgres/postgres.git synced 2025-04-25 21:42:33 +03:00

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
This commit is contained in:
Michael Paquier 2023-08-30 08:29:08 +09:00
parent 52c6c0f196
commit 8bf7db0285

View File

@ -2709,8 +2709,7 @@ PQputCopyData(PGconn *conn, const char *buffer, int nbytes)
* *
* After calling this, use PQgetResult() to check command completion status. * After calling this, use PQgetResult() to check command completion status.
* *
* Returns 1 if successful, 0 if data could not be sent (only possible * Returns 1 if successful, or -1 if an error occurs.
* in nonblock mode), or -1 if an error occurs.
*/ */
int int
PQputCopyEnd(PGconn *conn, const char *errormsg) PQputCopyEnd(PGconn *conn, const char *errormsg)