Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit b9a3139

Browse files
committed
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
1 parent f5744f1 commit b9a3139

File tree

8 files changed

+142
-142
lines changed

8 files changed

+142
-142
lines changed

src/bin/psql/command.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ HandleSlashCmds(PsqlScanState scan_state,
279279
* Subroutine to actually try to execute a backslash command.
280280
*
281281
* The typical "success" result code is PSQL_CMD_SKIP_LINE, although some
282-
* commands return something else. Failure results are PSQL_CMD_ERROR,
282+
* commands return something else. Failure result code is PSQL_CMD_ERROR,
283283
* unless PSQL_CMD_UNKNOWN is more appropriate.
284284
*/
285285
static backslashResult
@@ -683,7 +683,7 @@ exec_command_copyright(PsqlScanState scan_state, bool active_branch)
683683
}
684684

685685
/*
686-
* \crosstabview -- execute a query and display results in crosstab
686+
* \crosstabview -- execute a query and display result in crosstab
687687
*/
688688
static backslashResult
689689
exec_command_crosstabview(PsqlScanState scan_state, bool active_branch)
@@ -5084,7 +5084,7 @@ do_watch(PQExpBuffer query_buf, double sleep)
50845084
timebuf, sleep);
50855085
myopt.title = title;
50865086

5087-
/* Run the query and print out the results */
5087+
/* Run the query and print out the result */
50885088
res = PSQLexecWatch(query_buf->data, &myopt, pagerpipe);
50895089

50905090
/*

0 commit comments

Comments
 (0)