From fb197290c1f25d8b7f35bc2bc7144eeaf603687c Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Fri, 18 Jan 2013 22:36:54 -0500 Subject: [PATCH] libpq doc: Clarify what commands return PGRES_TUPLES_OK The old text claimed that INSERT and UPDATE always return PGRES_COMMAND_OK, but INSERT/UPDATE with RETURNING return PGRES_TUPLES_OK. Josh Kupershmidt --- doc/src/sgml/libpq.sgml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index e7ad066fe5..d03ec40e33 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -2469,7 +2469,8 @@ ExecStatusType PQresultStatus(const PGresult *res); command that happens to retrieve zero rows still shows PGRES_TUPLES_OK. PGRES_COMMAND_OK is for commands that can never - return rows (INSERT, UPDATE, + return rows (INSERT or UPDATE + without a RETURNING clause, etc.). A response of PGRES_EMPTY_QUERY might indicate a bug in the client software. -- 2.40.0