summaryrefslogtreecommitdiff
path: root/src/bin/psql/command.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2022-02-10 12:03:35 +0100
committerPeter Eisentraut <peter@eisentraut.org>2022-02-10 12:12:52 +0100
commitb9a3139397ff284cebc92fb008862ab902261883 (patch)
tree4c2ab73bf1f404c98a0077fee948cd9c7f89932b /src/bin/psql/command.c
parentf5744f1d1e3588b4c782bcad44e8da9c056eb67f (diff)
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
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r--src/bin/psql/command.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c
index f5904748553..292cff5df93 100644
--- a/src/bin/psql/command.c
+++ b/src/bin/psql/command.c
@@ -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);
/*