1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-02 09:02:37 +03:00

psql: Rename results to result when only a single one is meant

This makes the naming more consistent with the libpq API and the rest
of the code, and makes actually supporting multiple result sets in the
future less confusing.

Discussion: https://www.postgresql.org/message-id/flat/db72fb98-9b43-d776-7247-6ed38f28e7c6%40enterprisedb.com
This commit is contained in:
Peter Eisentraut
2022-02-10 12:03:35 +01:00
parent f5744f1d1e
commit b9a3139397
8 changed files with 142 additions and 142 deletions

View File

@ -279,7 +279,7 @@ HandleSlashCmds(PsqlScanState scan_state,
* Subroutine to actually try to execute a backslash command.
*
* The typical "success" result code is PSQL_CMD_SKIP_LINE, although some
* commands return something else. Failure results are PSQL_CMD_ERROR,
* commands return something else. Failure result code is PSQL_CMD_ERROR,
* unless PSQL_CMD_UNKNOWN is more appropriate.
*/
static backslashResult
@ -683,7 +683,7 @@ exec_command_copyright(PsqlScanState scan_state, bool active_branch)
}
/*
* \crosstabview -- execute a query and display results in crosstab
* \crosstabview -- execute a query and display result in crosstab
*/
static backslashResult
exec_command_crosstabview(PsqlScanState scan_state, bool active_branch)
@ -5084,7 +5084,7 @@ do_watch(PQExpBuffer query_buf, double sleep)
timebuf, sleep);
myopt.title = title;
/* Run the query and print out the results */
/* Run the query and print out the result */
res = PSQLexecWatch(query_buf->data, &myopt, pagerpipe);
/*