mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
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
This commit is contained in:
parent
c2a14bc7c9
commit
fb197290c1
1 changed files with 2 additions and 1 deletions
|
|
@ -2469,7 +2469,8 @@ ExecStatusType PQresultStatus(const PGresult *res);
|
|||
command that happens to retrieve zero rows still shows
|
||||
<literal>PGRES_TUPLES_OK</literal>.
|
||||
<literal>PGRES_COMMAND_OK</literal> is for commands that can never
|
||||
return rows (<command>INSERT</command>, <command>UPDATE</command>,
|
||||
return rows (<command>INSERT</command> or <command>UPDATE</command>
|
||||
without a <literal>RETURNING</literal> clause,
|
||||
etc.). A response of <literal>PGRES_EMPTY_QUERY</literal> might
|
||||
indicate a bug in the client software.
|
||||
</para>
|
||||
|
|
|
|||
Loading…
Reference in a new issue